Oracle Learning Notes (i)

Source: Internet
Author: User

1. Common Sqlplus Commands
(1) View the currently logged in User: Show user;
(2) Switch the current login User: Conn username/password (switch system user +as SYSDBA);
(3) Disconnect the currently logged-in User: disc;
(4) Exit Sqlplus:exit;
(5) Modify user password: PASSW (modify other user password to + user name);
(6) Interactive command:&
Sql> SELECT * from emp where job= ' &job ';
(7) Edit script: Edit
Sql> edit D:\aa.sql prompts to create the file and edit it
(8) Screen display record, save to file: Spool
Sql>spool on; open
Sql>spool d:/sql.sql; Save file path
Sql>sql statement;
Sql>spool off; end

(9) Set the width of the display line: set linesize characters; (default 80)

Sql>show linesize;

Sql>set Linesize 90;

(10) Set the number of rows per page: pagesize number of rows; (default 14)

Sql>show pagesize;

Sql>set pagesize 90;

PS: This article for Bo Master original, reprint please indicate source: http://www.cnblogs.com/Y-zhiwei/.

Oracle Learning Notes (i)

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.