Batch Processing of a large number of SQL statements in Oracle

Source: Internet
Author: User

Sometimes a lot of SQL statement data needs to be inserted. However, PL/SQL tools are often used for a long period of time. Recently, PL/SQL tools are used frequently and are sorted out to facilitate future reference.

The code is simple:

Batch Processing:

Sqlplus USER/PASSWORD @ TESTDB @ E:/1. SQL
Press any key to continue PAUSE ......
Exit

1. SQL statement content under the e Disk:

Insert into users (...) values (...);
Insert into users (...) values (...);
Insert into users (...) values (...);
Commit;
Quit;

Just add commit and quit at the end of the. SQL file to submit data and exit the connection! In this way, data can be inserted through SQL statements.

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.