Using use of Oracle

Source: Internet
Author: User

Use rules for using keywords in Oracle:

1. The query must be an equivalent connection.
2. The columns in the equivalent join must have the same name and data type.

There are a few things to keep in mind when simplifying connections with the Using keyword:
1. When connecting using the field columns in the Table1 table and the Table2 table, you cannot specify a table name or table alias for the field column in the Using clause and the SELECT clause.
2. If you are using the same multiple columns from two tables in a connection query, you can specify more than one column name in the Using clause, in the following form:

select... from table1 inner join table2   using(column1,column2);

The above statement is equivalent to the following statement:

select... from table1 inner join table2  on table1.column1=table2.column2  and table1.column2=table2.column2;

If you are retrieving multiple tables, you must specify them multiple times using the Using keyword, in the following form:

select... from table1   inner join table2 using(column1)   inner join table3 using(column2);

The above statement is equivalent to the following statement:

select... from table1,table2,table3   where table1.column1=table2.column1 and table2.column2=table3.table2;

Using use of Oracle

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.