sql之26 using sql*plus
行編輯命令
Command | Description |
A[PPEND] text | Adds text to the end of the current line |
C[HANGE] / old / new | Changes old text to new in the current line |
C[HANGE] / text / | Deletes text from the current line |
CL[EAR] BUFF[ER] | Deletes all lines from the SQL buffer |
DEL | Deletes current line |
DEL n | Deletes line n |
DEL m n | Deletes lines m to n inclusive |
I[NPUT] | Inserts an indefinite number of lines |
I[NPUT] text | Inserts a line consisting of text |
L[IST] | Lists all lines in the SQL buffer |
L[IST] n | Lists one line (specified by n) |
L[IST] m n | Lists a range of lines (m to n) inclusive |
R[UN] | Displays and runs the current SQL statement in the buffer |
n | Specifies the line to make the current line |
n text | Replaces line n with text |
0 text | Inserts a line before line 1 |
檔案操作命令
Command | Description |
SAV[E] filename [.ext] [REP[LACE]APP[END]] | Saves current contents of SQL buffer to a file. Use APPEND to add to an existing file; use REPLACE to overwrite an existing file. The default extension is .sql. |
GET filename [.ext] | Writes the contents of a previously saved file to the SQL buffer. The default extension for the filename is .sql. |
STA[RT] filename [.ext] | Runs a previously saved command file. |
@ filename | Runs a previously saved command file (same as START). |
ED[IT] | Invokes the editor and saves the buffer contents to a file named afiedt.buf. |
ED[IT] [filename[.ext]] | Invokes the editor to edit contents of a saved file. |
SPO[OL][filename[.ext]|OFF|OUT] | Stores query results in a file. OFF closes the spool file. OUT closes the spool file and sends the file results to the system printer. |
EXIT | Leaves SQL*Plus. |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271063/viewspace-910179/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sql之27 using sql*plusSQL
- SQL入門之6 sql*plusSQL
- Recipe 5.6. Using SQL to Generate SQLSQL
- 使用SQL*PlusSQL
- 使用sql*plus編輯sql文字SQL
- ORACLE SQL and SQL*PLUS (strong recommend)OracleSQL
- 在sql*plus裡編輯SQL命令SQL
- SQL*Plus安全(一)SQL
- SQL*Plus安全(二)SQL
- SQL*PLUS安全(三)SQL
- SQL*PLUS安全(四)SQL
- SQL*Plus Substitution VariablesSQL
- set autotrace in SQL*PlusSQL
- sql*plus入門SQL
- Using XML Parser for PL/SQLXMLSQL
- 【SQL*Plus】使用SQL*Plus的Preliminary方式連線資料庫SQL資料庫
- 【SQL*Plus】在SQL*Plus中謹慎使用Ctrl+S快捷鍵SQL
- 【SQL*Plus】使用SQL*Plus的-S選項精簡輸出資訊SQL
- SQL * Plus Copy 命令SQL
- sql_plus操作命令SQL
- 常用的sql*plus命令:SQL
- 【sqlplus】SQL*Plus命令使用大全SQL
- 【SQL*Plus】處理 SQL*Plus的標頭無法顯示問題SQL
- Oracle 11g系列:SQL Plus與PL/SQLOracleSQL
- SQL*Plus菜鳥筆記之第六篇SQL筆記
- SQL*Plus菜鳥筆記之第五篇SQL筆記
- SQL*Plus菜鳥筆記之第四篇SQL筆記
- SQL*Plus菜鳥筆記之第三篇SQL筆記
- SQL*Plus菜鳥筆記之第二篇SQL筆記
- Using SQL Script Get Information about ASMSQLORMASM
- Using Excel to generate Inserts for SQL ServerExcelSQLServer
- 【SQL/PLUS】Oracle PL/SQL程式設計用set serveroutput onSQLOracle程式設計Server
- 1.3.2. 關於SQL*PlusSQL
- plustrce.sql的作用SQL
- sql plus命令使用總結SQL
- SQL*PLUS 環境變數SQL變數
- SQL/PLUS 常用命令SQL
- sql*plus 常用命令SQL