Difference between SQL Server and Oracle

Source: Internet
Author: User

I. Syntax differences.

1. Table Data Replication
· Data replication in the database
Ms SQL Server
Insert into copy table name SELECT statement (copy table already exists)
Select field list into copy table name from table (copy table does not exist)
· Oracle
Insert into copy table name SELECT statement (copy table already exists)
Create Table copy table name as select statement (the copy table does not exist)

II. Object.

1. Temporary table.

Temporary tables, the main advantage is that the operation does not leave any trace, do not generate logs, so the speed is fast
· Ms SQL Server
Create Table # Table Name (...) or select field expression list into # table name from
Add # before the table name. These temporary tables are only valid during a database connection session.
· Oracle
2. Trigger.

· Ms SQL Server

Use inserted and deleted similar to the temporary table

3. Stored procedure.

· Ms SQL Server

Returns the result set.

· Oracle

The result set cannot be returned. You must use the reference cursor (ref cursor) to return the result set.

Related Article

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.