Home  >  Article  >  Backend Development  >  SQL中反斜杠问题

SQL中反斜杠问题

WBOY
WBOYOriginal
2016-06-23 13:56:191839browse

我用的PHP5.5,查询语句中格式如下to_char(MYDATE,\'MM/DD/YYYY\'),但是返回的数据结果是05\/27\/2014,怎么能把反斜杠去掉?

谢谢


回复讨论(解决方案)

to_char 函数是怎么定义的

to_char 函数是怎么定义的



SQL的函数
$stid = oci_parse($conn, 'select BIRTHPLACE,BIRTHPLACECODE,MYSEQ,to_char(MYDATE,\'MM/DD/YYYY\') as MYDATE,INSTITUTION,INSTITUTIONCODE from scott.mapaeon');

我发现只要查询的结果中有/,就会在前面加一个反斜杠,不管数据在数据库中是什么类型的

怎么能帮结果中的反斜杠去掉?谢谢

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn