Oracle linesize command, oraclelinesize

Source: Internet
Author: User

Oracle linesize command, oraclelinesize
You can use the linesize command to set the number of characters that a row can accommodate. The default value is 80. If the linesize value is small,
A row of data in the table may be displayed in multiple rows on the screen. If the value of linesize is larger, one row of data can be displayed in
The screen is displayed in one line.
The linesize command syntax is as follows:
Set linesize n
Where, n indicates that a row of data on the screen can be accommodated.
Number of characters, valid range: 1-32767.
As shown below, linesize is not used before
SQL> select * from emp;


EMPNO ENAME JOB MGR HIREDATE SAL COMM
-------------------------------------------------------------------------
DEPTNO
----------
7369 smith clerk 7902-12-80 800
20


7499 allen salesman 7698 20-2 months-81 1600 300
30


7521 ward salesman 7698 22-2 month-81 1250 500
30




EMPNO ENAME JOB MGR HIREDATE SAL COMM
-------------------------------------------------------------------------
DEPTNO
----------
7566 jones manager 7839 2975-81
20


7654 martin salesman 7698 28-9 month-81 1250 1400
30


7698 blake manager 7839 01-5 months-81 2850
30




EMPNO ENAME JOB MGR HIREDATE SAL COMM
-------------------------------------------------------------------------
DEPTNO
----------
7782 clark manager 7839-81 2450
10


7788 scott analyst 7566 24-1 month-87 3000
20


7839 king president 17-11-81 5000
10




EMPNO ENAME JOB MGR HIREDATE SAL COMM
-------------------------------------------------------------------------
DEPTNO
----------
7844 turner salesman 7698 month-81 1500 0
30


7876 adams clerk 7788 month-1100
20


7900 james clerk 7698-81 1800
30




EMPNO ENAME JOB MGR HIREDATE SAL COMM
-------------------------------------------------------------------------
DEPTNO
----------
7902 ford analyst 7566 03-12 months-81 3000
20


7934 miller clerk 7782 23-1 month-82 1300
10


7935 xiaoxue manager 7839 month-98 5000 500
20




15 rows have been selected.


SQL>
As shown above, because the table contains many columns, the data is displayed in a branch. After using the linesize command


SQL> set linesize 400
SQL> select * from emp;


EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
-----------------------------------------------------------------------------------
7369 smith clerk 7902-12-80 800 20
7499 allen salesman 7698 20-2 month-81 1600 300 30
7521 ward salesman 7698 22-2 month-81 1250 500 30
7566 jones manager 7839 2975-81 20
7654 martin salesman 7698 28-9 month-81 1250 1400 30
7698 blake manager 7839 01-5 months-81 2850 30
7782 clark manager 7839-81 2450 10
7788 scott analyst 7566 24-1 month-87 3000 20
7839 king president 17-11 month-81 5000 10
7844 turner salesman 7698 month-81 1500 0 30
7876 adams clerk 7788 1100 month-87 20


EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
-----------------------------------------------------------------------------------
7900 james clerk 7698 03-12 months-81 1800 30
7902 ford analyst 7566 03-12 months-81 3000 20
7934 miller clerk 7782 23-1 month-82 1300 10
7935 xiaoxue manager 7839 month-98 5000 500 20


15 rows have been selected.
The above data is much clearer.

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.