Oracle BULK INSERT Data

Source: Internet
Author: User

Oracle BULK INSERT Data

Studied: http://blog.csdn.net/chenleixing/article/details/45165761/

Worship, quote the original:

So is there any other way?? The answer is yes, perhaps familiar with the Oracle database may know from the Oracle9i version later, you can use a method namely: "INSERT  all into a table values (each value) into  a table values (other values) into a table VALUES (Others) .... And then a SELECT statement ". Behind the SELECT statement we can look up from the virtual table as select 1 from DUAL. Note that the following SELECT statement can be arbitrary, but not the contents of the select out into the front table, but up to the front of the number of data each time inserting how many rows, this number of rows is and behind the SELECT statement to find out a few of the fixed, such as the following with the Select The statement found 15 records, then the front "INSERT  all into a" table values (each value 1) into  a table values (other values 2) into a table values (other values 3) " Insert a value of 1 for each field to insert 15 records, and then insert the value 2 for each corresponding field 15 records, and then insert the value 3 corresponding to each field 15 records.       we want to bulk insert multiple values such a record, so the back of the SELECT statement as long as can find a record on the line, it is recommended to use the back with select 1 from DUAL.

Add the test example later:

Oracle BULK INSERT Data

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.