Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Column Format

$
0
0
Hi all,

Here i am having doubt in oracle SQL*PLus ....

This is my table structure:

Code:

SQL> desc section
 Name                                                  Null?    Type
 ----------------------------------------------------- --------
 SECTION_ID                                            NOT NULL NUMBER(8)
 COURSE_NO                                            NOT NULL NUMBER(8)
 SECTION_NO                                            NOT NULL NUMBER(3)
 START_DATE_TIME                                                DATE
 LOCATION                                                      VARCHAR2(50)
 INSTRUCTOR_ID                                        NOT NULL NUMBER(8)
 CAPACITY                                                      NUMBER(3)
 CREATED_BY                                            NOT NULL VARCHAR2(30)
 CREATED_DATE                                          NOT NULL DATE
 MODIFIED_BY                                          NOT NULL VARCHAR2(30)
 MODIFIED_DATE                                        NOT NULL DATE

Instead of formatting all columns in a separate line, i want to format all coulmns in a single SET command....

For example.,

SQL> column section_id format a20
SQL> column course_no format a20

Here i m giving separate separate commands to format columns, instead i want all coumns to be formatted in a single command.

Viewing all articles
Browse latest Browse all 13329

Trending Articles