Oracle Internal Connectivity ____oracle

Source: Internet
Author: User

An inner join (Inner join) is a connection result of a table connection that contains only those records that fully satisfy the join condition.

Select T1.col1,t1.col2,t2.col3 from
t1,t2
where t1.col2=t2.col2

Or

Select T1.col1,t1.col2,t2.col3 from
T1
join T2 on (t1.col2=t2.col2)

If the inner join has additional restrictions in addition to the join condition, the position that the constraint appears in the target SQL does not affect the results of the final execution. If you want to add a t1.col1=1 present condition, this time you can write as follows:

Select T1.col1,t1.col2,t2.col3 from
T1
join T2 on (T1.col2=t2.col2 and T1.col1=1)

Or

Select T1.col1,t1.col2,t2.col3 from
T1
join T2 on (t1.col2=t2.col2)
where t1.col1=1
"Note": if it is outside the connection, it will affect the


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.