[Oracle] insert into select, select into, and update select statements in SQL

Source: Internet
Author: User

[Oracle] the SQL code of the insert into select, select into, and update select statements in SQL -- table1 is required -- join subquery conditions can be written after where, you can also ignore insert into table1 t1 (id, name) select id, name from table2 t2 where t2. field = t1. a field; SQL code -- select * into table2 from table1 -- tmp_table does not exist, new, PL/SQL requires the following statement: create table tmp_table as select id from tbl_project SQL code -- update select update table1 t1 set t1.name = (select name from table2 t2 wehre t2.id = t1.id)

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.