首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

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

2012-04-02 
请问set heading off set term off set echo off这些都干嘛用的?请问setheadingoffsettermoffsetechoo

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

[解决办法]
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1011230
[解决办法]
这些都是sqlplus的基本用法,用于格式化输出

比如
set heading off --让结果行的标题不显示
spool c:\dropTable.sql
select 'drop table ' || table_name || '; ' from user_tables;
spool off

这样,只要简单的编辑c:\dropTable.sql,就可以得到一个删除当前用户的表的批处理sql

热点排行