Oracle Sqlplus Common Commands

Source: Internet
Author: User

1. Connect or Conn
2. Show user
3. Clear Screen
4, Spool
Enter: Spool d:\sql.txt after landing in Sqlplus
Result: The file will be created in the D drive Sql.txt
Then execute: SELECT * from EMP;
Then execute: SELECT * FROM dept;
Re-enter: spool off;
Result: The contents of the screen just now will be written to the Sql.txt file.
5. Edit
Edits the last SQL statement that was executed.
Perform select * from EMP first;
Execute edit again;
6. Set time on
Set Time off
7. Show Error
8. Host
command to invoke the operating system
Host mkdir D:\test
Result: A folder is created
9, @
Execute SQL Script
Create a sql.sql file with show User content; SELECT * from EMP;
@d:\sql.sql

Oracle Sqlplus Common Commands

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.