Oracle uses the pagesize command and oraclepagesize command
You can use the pagesize command to set the size of each page to control the data volume displayed on each page. Syntax format of the pagesize command
As follows:
Set pagesize n
Here, parameter n represents a positive integer of the size of each page. The maximum value can be 50000, and the default value is 14. The page is not only output data.
It consists of all the output results from SQL * plus to the screen, including the title and blank lines.
For example, when you query data from emp
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
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-81 5000
10
7844 turner salesman 7698 month-81 1500 0
30
7876 adams clerk 7788 month-1100
20
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
-------------------------------------------------------------------------
----------
7900 james clerk 7698-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.
SQL>
The preceding query results appear twice.
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
-------------------------------------------------------------------------
----------
.
If the pagesize command is changed,
SQL> set pagesize 100
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
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-81 5000
10
7844 turner salesman 7698 month-81 1500 0
30
7876 adams clerk 7788 month-1100
20
7900 james clerk 7698-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.
SQL>
The title of the result will not appear multiple times. When the data volume is large, we can help you clearly view the results.