请问set heading off; set term off; set echo off  这些都干嘛用的?

解决方案 »

  1.   

    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1011230
      

  2.   

    这些都是sqlplus的基本用法,用于格式化输出比如
    set heading off  --让结果行的标题不显示
    spool c:\dropTable.sql
    select 'drop table ' || table_name || ';' from user_tables;
    spool off这样,只要简单的编辑c:\dropTable.sql,就可以得到一个删除当前用户的表的批处理sql
      

  3.   

        set echo on:显示文件中的每条命令及其执行结果;
        set echo off:不显示文件中的命令,只显示其执行结果。
    term命令:
        当和SPOOL命令联合使用时,可以取消SQLPLUS输出,查询结果仅仅存在于假脱机文件中
        set term on:查询结果既显示于假脱机文件中,又在SQLPLUS中显示;
        set term off:查询结果仅仅显示于假脱机文件中。