Oracle inserts multiple data entries into one or more tables at a time.

Source: Internet
Author: User

Oracle needs to create two tables test1, test2: www.2cto.com create table test1 (id Integer primary key, name varchar2 (40 )); create table test2 (id integer primary key, age integer, height number); insert multiple data entries into a table at a time: SQL> insert all 2 into test1 values (1, 'A ') 3 into test1 values (2, 'bb ') 4 select * from dual; two rows have been created. Insert multiple data entries into multiple tables at a time: SQL> insert all 2 into test1 values (3, 'cc') 3 into test2 values (1, 2, 3) 4 select * from dual; two rows have been created.

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.