天天看點

學習筆記(01):Oracle資料庫-SQLPlus指令

立即學習:https://edu.csdn.net/course/play/3574/62058?utm_source=blogtoedu

設定查詢結果:

SET LINESIZE  300;

SET PAGESIZE  20;

COL job FOR A8;

調用記事本:

ed hello   //預設字尾是sql

@e:hello    //調用E盤的hello.sql

顯示使用者:

show user;

切換使用者:

CONN  system/manager

沒有使用者登陸:

sqlplus /nolog

切換sys使用者:

CONN sys/change_on_install  AS SYSDBA

其他使用者如果想通路不同使用者的表:

select * from scott.emp    //加模式名稱

在sqlplus裡調:

HOST copy  e:\data.sql  e:\hello.sql   //拷貝檔案