The COL command is used in Oracle to change column formatting, including width, header, and alignment. The syntax is: COL
. Format options include: width, header, left/right/center alignment. Other options support wrapping, truncation, even distribution, and wrapping. It should be noted that this command only affects the current session, if the column length exceeds the specified width, the data will be truncated.
Usage of COL in Oracle
The COL command is used to change the column format in the terminal window in Oracle. It allows you to specify column width, header, and alignment.
Usage
<code>COL <列名> <格式></code>
Format
## Specify the format of the column, you can Includes the following options:
Example
The following example sets the width of column "Employee_Name" to 25 characters, the title "Employee Name", and left alignment:<code>COL Employee_Name FORMAT A25 "Employee Name" LEFT</code>
Additional options
The COL command also supports the following additional options:Note
The above is the detailed content of How to use col in oracle. For more information, please follow other related articles on the PHP Chinese website!