Column name repeating in query results

偶尔善良 提交于 2019-12-02 04:49:54

You get this effect because the page size is less than the number of rows returned. The default is 14. If you set it to a value greater than the number of rows, no additional headers will be inserted. You can set the pagesize during a sql*plus session with this command:

set pagesize n

where n is then number of rows. So to set it to 200:

set pagesize 200

In addition to what Colin and ik_zelf said:

set pages 0

or

set pagesize 0

Sqlplus will suppress all headings, page breaks and titles

Try outputting the result of your query to a file, e.g.:

SQL>SPOOL /tmp/mydata.dat   
SQL>select emp_name from employees;
SQL>SPOOL OFF
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!