oracel—sql plus

SQL> col ename justify center
  SQL> /
  EMPNO      ENAME          JOB
  ----------  ----------------------------------------    ---------
  7369 SMITH                  CLERK
  7499 ALLEN                  SALESMAN
  7521 WARD                   SALESMAN
  对于NUMBER型的列,列标题缺省在右边,其它类型的列标题缺省在左边
  
  5). 不让一个列显示在屏幕上
  NOPRI[NT]PRI[NT]
  SQL> col job noprint
  SQL> /
  EMPNO      ENAME
  ----------   ----------------------------------------
  7369 SMITH
  7499 ALLEN
  7521 WARD
  
  6). 格式化NUMBER类型列的显示:
  SQL> COLUMN SAL FORMAT $99,990
  SQL> /
  Employee
  Department Name    Salary  Commission
  ---------- ---------- --------- ----------
  30     ALLEN    $1,600  300
  
  7). 显示列值时,如果列值为NULL值,用text值代替NULL值
  COMM NUL[L] text
  SQL>COL COMM NUL[L] text
  
  8). 设置一个列的回绕方式
  WRA[PPED]WOR[D_WRAPPED]TRU[NCATED]
  COL1
  --------------------
  HOW ARE YOU?
  
  SQL>COL COL1 FORMAT A5
  SQL>COL COL1 WRAPPED
  COL1
  -----
  HOW A
  RE YO
  U?
  
  SQL> COL COL1 Word_WRAPPED
  COL1
  -----
  HOW
  ARE
  YOU?
  
  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]{ONOFFtext}
  ARRAY[SIZE] {15n}
  AUTO[COMMIT]{ONOFFIMM[EDIATE]n}
  AUTOP[RINT] {ONOFF}
  AUTORECOVERY [ONOFF]
  AUTOT[RACE] {ONOFFTRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]
  BLO[CKTERMINATOR] {.c}
  CMDS[EP] {;cONOFF}
  COLSEP {_text}
  COM[PATIBILITY]{V7V8NATIVE}
  CON[CAT] {.cONOFF}
  COPYC[OMMIT] {0n}
  COPYTYPECHECK {ONOFF}
  DEF[INE] {&cONOFF}
  DESCRIBE [DEPTH {1nALL}][LINENUM {ONOFF}][INDENT {ONOFF}]
  ECHO {ONOFF}
  EDITF[ILE] file_name[.ext]
  EMB[EDDED] {ONOFF}
  ESC[APE] {/cONOFF}
  FEED[BACK] {6nONOFF}
  FLAGGER {OFFENTRY INTERMED[IATE]FULL}
  FLU[SH] {ONOFF}
  HEA[DING] {ONOFF}
  HEADS[EP] {cONOFF}
SQL> col ename justify center
  SQL> /
  EMPNO      ENAME          JOB
  ----------  ----------------------------------------    ---------
  7369 SMITH                  CLERK
  7499 ALLEN                  SALESMAN
  7521 WARD                   SALESMAN
  对于NUMBER型的列,列标题缺省在右边,其它类型的列标题缺省在左边
  
  5). 不让一个列显示在屏幕上
  NOPRI[NT]PRI[NT]
  SQL> col job noprint
  SQL> /
  EMPNO      ENAME
  ----------   ----------------------------------------
  7369 SMITH
  7499 ALLEN
  7521 WARD
  
  6). 格式化NUMBER类型列的显示:
  SQL> COLUMN SAL FORMAT $99,990
  SQL> /
  Employee
  Department Name    Salary  Commission
  ---------- ---------- --------- ----------
  30     ALLEN    $1,600  300
  
  7). 显示列值时,如果列值为NULL值,用text值代替NULL值
  COMM NUL[L] text
  SQL>COL COMM NUL[L] text
  
  8). 设置一个列的回绕方式
  WRA[PPED]WOR[D_WRAPPED]TRU[NCATED]
  COL1
  --------------------
  HOW ARE YOU?
  
  SQL>COL COL1 FORMAT A5
  SQL>COL COL1 WRAPPED
  COL1
  -----
  HOW A
  RE YO
  U?
  
  SQL> COL COL1 Word_WRAPPED
  COL1
  -----
  HOW
  ARE
  YOU?
  
  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]{ONOFFtext}
  ARRAY[SIZE] {15n}
  AUTO[COMMIT]{ONOFFIMM[EDIATE]n}
  AUTOP[RINT] {ONOFF}
  AUTORECOVERY [ONOFF]
  AUTOT[RACE] {ONOFFTRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]
  BLO[CKTERMINATOR] {.c}
  CMDS[EP] {;cONOFF}
  COLSEP {_text}
  COM[PATIBILITY]{V7V8NATIVE}
  CON[CAT] {.cONOFF}
  COPYC[OMMIT] {0n}
  COPYTYPECHECK {ONOFF}
  DEF[INE] {&cONOFF}
  DESCRIBE [DEPTH {1nALL}][LINENUM {ONOFF}][INDENT {ONOFF}]
  ECHO {ONOFF}
  EDITF[ILE] file_name[.ext]
  EMB[EDDED] {ONOFF}
  ESC[APE] {/cONOFF}
  FEED[BACK] {6nONOFF}
  FLAGGER {OFFENTRY INTERMED[IATE]FULL}
  FLU[SH] {ONOFF}
  HEA[DING] {ONOFF}
  HEADS[EP] {cONOFF}
INSTANCE [instance_pathLOCAL]
  LIN[ESIZE] {80n}
  LOBOF[FSET] {n1}
  LOGSOURCE [pathname]
  LONG {80n}
  LONGC[HUNKSIZE] {80n}
  MARK[UP] Html [ONOFF] [HEAD text] [BODY text] [ENTMAP {ONOFF}] [SPOOL
  {ONOFF}] [PRE[FORMAT] {ONOFF}]
  NEWP[AGE] {1nNONE}
  NULL text
  NUMF[ORMAT] format
  NUM[WIDTH] {10n}
  PAGES[IZE] {24n}
  PAU[SE] {ONOFFtext}
  RECSEP {WR[APPED]EA[CH]OFF}
  RECSEPCHAR {_c}
  SERVEROUT[PUT] {ONOFF} [SIZE n] [FOR[MAT] {WRA[PPED]WOR[D_
  WRAPPED]TRU[NCATED]}]
  SHIFT[INOUT] {VIS[IBLE]INV[ISIBLE]}
  SHOW[MODE] {ONOFF}
  SQLBL[ANKLINES] {ONOFF}
  SQLC[ASE] {MIX[ED]LO[WER]UP[PER]}
  SQLCO[NTINUE] {> text}
  SQLN[UMBER] {ONOFF}
  SQLPRE[FIX] {#c}
  SQLP[ROMPT] {SQL>text}
  SQLT[ERMINATOR] {;cONOFF}
  SUF[FIX] {SQLtext}
  TAB {ONOFF}
  TERM[OUT] {ONOFF}
  TI[ME] {ONOFF}
  TIM

你可能感兴趣的:(html,sql,File,null,System,UP)