Oracle Development Technology: Col Format method

Source: Internet
Author: User
Tags dname

Col command:

The display form of the primary formatted column.

The command has many options, as follows:

Col[umn] [{column|expr} [option ...]]

Option options can be the following clauses:

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). Change the default column headings

COLUMN column_name HEADING column_heading--Change the caption command the experiment didn't work out, I don't know what the problem is.

For example:

Sql>select * FROM Dept;

DEPTNO dname LOC

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

Ten ACCOUNTING NEW YORK

Sql>col LOC Heading Location

Sql>select * FROM Dept;

DEPTNO dname Location

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

Ten 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.