Oracle's Get Command

Source: Internet
Author: User

Oracle can use the GET command to read the file contents into a buffer,
The syntax for using the GET command is as follows:
Get [file] file_name {list|nolist]
Where file_name indicates that an external file is specified, and the contents of the file are entered into the sql*plus buffer.
List represents the statement in the list buffer.
Nolist indicates that the contents of the buffer are not listed.
Examples are as follows
Create a query.sql in the E-drive, where the content is
SELECT * FROM Dept
/
In the Sql*plus

Sql> Get E:\\query.sql
1* SELECT * FROM dept
Executing the contents of the buffer
Sql> Run
1* SELECT * FROM dept

DEPTNO dname LOC
---------- -------------- -------------
Ten ACCOUNTING NEW YORK
DALLAS
SALES CHICAGO
OPERATIONS BOSTON
The contents of the buffer will not be listed using Nolist
Sql> get E:\\query.sql nolist;
Sql> Run
1* SELECT * FROM dept


DEPTNO dname LOC
---------- -------------- -------------
Ten ACCOUNTING NEW YORK
DALLAS
SALES CHICAGO
OPERATIONS BOSTON

Oracle's Get Command

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.