Web project (original database with Oracle) MySQL compatible

Source: Internet
Author: User

Some points to note about Oracle compatibility with MySQL:

To_char: Convert to String type :to_char (1234.5, ' $9999.9 '), result :$1234.5  
To_date: Convert to date type :to_date (' 1980-01-01 ', ' yyyy-mm-dd '), result :01-1 month -80 
To_number: Convert to numeric type :to_number (' 1234.5 '), result :1234.5

(1) Date_format (date, '%y-%m-%d ')-------------- to_char () in >oracle;

(2) str_to_date (date, '%y-%m-%d ')--------------to_date () in >oracle;

(3) concat ('% ', ' abc ', '% ')------------------------the '% ' in >oracle | | ' ABC ' | | ‘%‘

(4)CAST (A.sort as signed)------------------->oracle to_number (a.sort)

(5) Desc field----------------------' desc ' in >oracle

(6) Note table aliases

(7) Example of recursive function (with example)

(8) Expression of current date and date

(9) Determine if the field is empty

(10) Database merge Row Records

Web project (original database with Oracle) MySQL compatible

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.