SQL Server vsoracle simple syntax comparison

Source: Internet
Author: User

1. SQL SERVER variables must start.

2. You do not need to write a semicolon Terminator after the SQL SERVER statement.

3. oracle variable type number can be changed to decimal of SQL server

4. The oracle variable type varchar2 can be changed to the varchar of SQL server.

5. SQL SERVER defines variables and transmits parameters. It is best to add the parameter size value, for example, varchar (50)

6. SQL SERVER cannot use ROWID or ROWNUM (but can be replaced by TOP)

7. The nvl function in oracle is replaced by the ISNULL function in SQL SERVER.

8. SQL SERVER user-defined functions cannot modify global table data (only table data within the scope of user-defined functions can be modified). Therefore, it is best to use stored procedures instead of functions for table modification.

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.