[20120705]sqlplus 的column xxx noprint.txt
sqlplus中有時候某列很長,不想顯示,一般使用column xxx format a10,限制輸出的長度。
實際上column 還可以加入引數noprint,使該行不顯示,例子如下:
實際上column 還可以加入引數noprint,使該行不顯示,例子如下:
SQL> help column
COLUMN
------
Specifies display attributes for a given column, such as:
- text for the column heading
- alignment for the column heading
- format for NUMBER data
- wrapping of column data
Also lists the current display attributes for a single column
or all columns.
COL[UMN] [{column | expr} [option ...] ]
where option represents one of the following clauses:
ALI[AS] alias
CLE[AR]
ENTMAP {ON|OFF}
FOLD_A[FTER]
FOLD_B[EFORE]
FOR[MAT] format
HEA[DING] text
JUS[TIFY] {L[EFT] | C[ENTER] | R[IGHT]}
LIKE {expr | alias}
NEWL[INE]
NEW_V[ALUE] variable
NOPRI[NT] | PRI[NT]
NUL[L] text
OLD_V[ALUE] variable
ON|OFF
WRA[PPED] | WOR[D_WRAPPED] | TRU[NCATED]
SQL> column hiredate clear
SQL> column hiredate noprint
SQL> select * from emp where empno='7369';
EMPNO ENAME JOB MGR SAL COMM DEPTNO
---------- ---------- --------- ---------- ---------- ---------- ----------
7369 SMITH CLERK 7902 800 20
SQL> column hiredate print
SQL> select * from emp where empno='7369';
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
7369 SMITH CLERK 7902 1980-12-17 00:00:00 800 20
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-734807/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlplus column命令用法SQL
- java.sql.BatchUpdateException: Date truncation: Out of range value for column xxxxxJavaSQLBATException
- sqlplus選項之column print_noprintSQL
- Oracle 反向索引 where index_column like '%xxx'Oracle索引Index
- oracle sqlplus中column格式化命令之heading用法OracleSQL
- oracle10g sqlplus之column格式化查詢結果OracleSQL
- ibatis resultMap引數填充異常:java.sql.SQLException: Column 'XXX' not found.BATJavaSQLException
- [20230303]sqlplus column new_value old_value.txtSQL
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Error building Player: Win32Exception: ApplicationName=‘xxxxxxxxxxxxxxxxxx//sdk\tools\zipalign.exe' ...ErrorUIWin32ExceptionAPP
- Internal Error with background job scheduling XXXXXXXXXXXXX.Error
- [20231103]sqlplus column new_value old_value.txtSQL
- // @require file://C:xxxxxxxxx.jsUIJS
- Error: no such columnError
- mysql Incorrect key file for table ‘/xxxxxxxx/xxxx.MYI'; try to repair itMySqlAI
- undefine macro xxxxxMac
- ExtJs的Column佈局JS
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- Column Monitoring
- (徵文模板參考)xx技能樹/職業路線評測-xxxxxxxx
- JPA的Column註解總結
- Postgre 中列出Column情報的命令
- oracle下,drop column 的語句Oracle
- CentOS 報錯 java.net.UnknownHostException: xxxxxx: 未知的名稱或服務CentOSJavaException
- Index column size too large. The maximum column size is 767 bytesIndex
- Hibernate 註解@Column(nullable = false) 和 @Column(unique=true)NullFalse
- Linux下編譯國標GB28181視訊推流元件EasyGBD報錯undefined reference to `xxxxxxxx@GLIBC_xxxxx‘解決Linux編譯元件Undefined
- SAP UI5 Form 表單 Column Layout 下的 Column 個數分配問題UIORM
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- [Linux] mutt /xxxx/xxxx/sent is not a mailbox.LinuxAI
- CSS column-spanCSS
- CSS column-gapCSS
- CSS column-ruleCSS
- Oracle Column Group StatisticsOracle
- MAX or MIN of Indexed ColumnIndex
- [PT]Column Histogram StatisticsHistogram
- C++ vector<std::tuple<XXX, XXX, XXX>>C++
- Index column size too large. The maximum column size is 767 bytes.Index