Oracle Sqlplus formatted output

Source: Internet
Author: User

1-show pagesize # # #显示页行数

Set PageSize # # #显示页行数为300

2-show Linesize # # #显示行宽度

Set Linesize # # #显示行宽度为300

3-show Numwidth # # #显示数字字段长度

Set Numwidth Ten # # #显示数字列长度

4-Save Forever

/u01/app/oracle/product/11.2.0/db_1/sqlplus/admin/glogin.sql # # #此为linux路径

# # #window还需要设置dos窗口的大小

Set pagesize 300

Set Linesize 300

Set Numwidth 10

5-Column format settings

Col colname for A20 # # # #设置字符串, or a Time Type column field width of 20, cannot be set as a numeric type, otherwise the display is "#######"

Col colname for $99999/99999999 # # # #显示数字类型的列或钱数

Oracle Sqlplus formatted output

Related Article

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.