cmd 执行sql脚本 SQL PLUS命令的使用大全

11/28 10:20:01 来源网站:268辅助卡盟网

COL1

-----

HOW A

RE YO

SQL> COL COL1 WORD_WRAPPED

COL1

-----

HOW

ARE

SQL> COL COL1 WORD_WRAPPED

COL1

-----

HOW A

9). 显示列的当前的显示属性值

SQL> COLUMN column_name

10). 将所有列的显示属性设为缺省值

SQL> CLEAR COLUMNS

8. 屏蔽掉一个列中显示的相同的值

BREAK ON break_column

SQL> BREAK ON DEPTNO

SQL> SELECT DEPTNO, ENAME, SAL

FROM EMP

WHERE SAL < 2500

ORDER BY DEPTNO;

DEPTNO ENAME SAL

---------- ----------- ---------

10 CLARK 2450

MILLER 1300

20 SMITH 800

ADAMS 1100

9. 在上面屏蔽掉一个列中显示的相同的值的显示中,每当列值变化时在值变化之前插入n个空行。

BREAK ON break_column SKIP n

SQL> BREAK ON DEPTNO SKIP 1

SQL> /

DEPTNO ENAME SAL

---------- ----------- ---------

10 CLARK 2450

MILLER 1300

20 SMITH 800

ADAMS 1100

10. 显示对BREAK的设置

SQL> BREAK

11. 删除6、7的设置

SQL> CLEAR BREAKS

12. Set 命令:

该命令包含许多子命令:

SET system_variable value

system_variable value 可以是如下的子句之一:

APPI[NFO]{ON|OFF|text}

ARRAY[SIZE] {15|n}

AUTO[COMMIT]{ON|OFF|IMM[EDIATE]|n}

AUTOP[RINT] {ON|OFF}

AUTORECOVERY [ON|OFF]

AUTOT[RACE] {ON|OFF|TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]

BLO[CKTERMINATOR] {.|c}

CMDS[EP] {;|c|ON|OFF}

COLSEP {_|text}

COM[PATIBILITY]{V7|V8|NATIVE}

CON[CAT] {.|c|ON|OFF}

COPYC[OMMIT] {0|n}

COPYTYPECHECK {ON|OFF}

DEF[INE] {&|c|ON|OFF}

DESCRIBE [DEPTH {1|n|ALL}][LINENUM {ON|OFF}][INDENT {ON|OFF}]

ECHO {ON|OFF}

EDITF[ILE] file_name[.ext]

EMB[EDDED] {ON|OFF}

ESC[APE] {|c|ON|OFF}

FEED[BACK] {6|n|ON|OFF}

FLAGGER {OFF|ENTRY |INTERMED[IATE]|FULL}

FLU[SH] {ON|OFF}

HEA[DING] {ON|OFF}

HEADS[EP] {||c|ON|OFF}

INSTANCE [instance_path|LOCAL]

LIN[ESIZE] {80|n}

LOBOF[FSET] {n|1}

LOGSOURCE [pathname]

LONG {80|n}

LONGC[HUNKSIZE] {80|n}

    暂无相关资讯
cmd 执行sql脚本 SQL PLUS命令的使用大全