Oracle Development Technology: col formatting Method

Source: Internet
Author: User
Tags dname
It mainly formats the display of columns. This command has many options: COL [UMN] [{column | expr} [option] Option option can be the following clause: ALI [AS] aliasCLE [AR] FOLD_A [FTER] FOLD_ B [EFORE] FOR [MAT] formatHEA [DING] textJUS [encoding] {L [EFT] | C [ENTER] | C [ENTRE] | R

It mainly formats the display of columns. This command has many options: COL [UMN] [{column | expr} [option] Option option can be the following clause: ALI [AS] alias CLE [AR] FOLD_A [FTER] FOLD_ B [EFORE] FOR [MAT] format HEA [DING] text JUS [encoding] {L [EFT] | C [ENTER] | C [ENTRE] | R

It mainly formats the display of columns.

This command has the following options:

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

The Option can be the following clause:

ALI [AS] alias

CLE [AR]

FOLD_A [FTER]

FOLD_ B [EFORE]

FOR [MAT] format

HEA [DING] text

JUS [cipher] {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 ). Change the default Column Title

COLUMN column_name HEADING column_heading -- The experiment failed to change the title command. I don't know what the problem is.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.