Anti-slash problem in SQL

Source: Internet
Author: User
I use the PHP5.5, query statement format as follows To_char (mydate,\ ' mm/dd/yyyy\ '), but the result of the returned data is 05\/27\/2014, how can I remove the backslash?

Thank you


Reply to discussion (solution)

How the TO_CHAR function is defined

How the TO_CHAR function is defined



Functions of SQL
$stid = Oci_parse ($conn, ' Select Birthplace,birthplacecode,myseq,to_char (mydate,\ ' mm/dd/yyyy\ ') as MyDate, Institution,institutioncode from Scott.mapaeon ');

I found that as long as there is/in the result of the query, a backslash will precede it, regardless of the type of data in the database

How can I get rid of the backslash in the result? Thank you

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.