Home >Database >Mysql Tutorial >oracle开发技术:col格式化方法

oracle开发技术:col格式化方法

WBOY
WBOYOriginal
2016-06-07 14:54:181269browse

主要格式化列的显示形式。 该命令有许多选项,具体如下: COL[UMN] [{ column|expr} [ option ]] Option选项可以是如下的子句: ALI[AS] alias CLE[AR] FOLD_A[FTER] FOLD_B[EFORE] FOR[MAT] format HEA[DING] text JUS[TIFY] {L[EFT]|C[ENTER]|C[ENTRE]|R

  主要格式化列的显示形式。

  该命令有许多选项,具体如下:

  COL[UMN] [{ column|expr} [ option …]]

  Option选项可以是如下的子句:

  ALI[AS] alias

  CLE[AR]

  FOLD_A[FTER]

  FOLD_B[EFORE]

  FOR[MAT] format

  HEA[DING] text

  JUS[TIFY] {L[EFT]|C[ENTER]|C[ENTRE]|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]

  1)。 改变缺省的列标题

  COLUMN column_name HEADING column_heading --改变标题命令实验没有成功,不知道是什么问题

  For example:

  Sql>select * from dept;

  DEPTNO DNAME LOC

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

  10 ACCOUNTING NEW YORK

  sql>col LOC heading location

  sql>select * from dept;

  DEPTNO DNAME location

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

  10 ACCOUNTING NEW YORK

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn