想请教一下在linux环境中如何让oracle执行语句时屏幕不显示查询结果?
比如我执行下面语句,我只是想把select的结果导出成数据文件,不想看到运行过程中显示的查询结果,有没有什么办法可以让oracle执行语句时,不用把查询结果刷屏似的不断显...
比如我执行下面语句,我只是想把select的结果导出成数据文件,不想看到运行过程中显示的查询结果,有没有什么办法可以让oracle执行语句时,不用把查询结果刷屏似的不断显示,只是显示执行完毕及执行结果记录条数而已?
spool /home/tanxb/集团组网成员核查.txt;
select /*DQ_SG_20150323_3842329*/ c.SERVNUMBER,b.servnumber,d.PRODNAME as 产品名称,
a.SUBSPRODID as 用户产品实例编号,a.SUBSID as 成员id,a.REGION as 地区,a.PRODID as 产品编码,a.PACKAGEID as 所属产品包编码,
a.PACKAGEPRODID as 产品包实例编号,a.TARIFFITEMID as 计费ID,
a.STANDARDTARIFF as 标价,a.PRICE as 售价,a.STARTDATE as 开始时间,a.ENDDATE as 结束时间,
(case when a.STATUS='1' then '生效' when a.STATUS='2' then '作废' else '预生成' end) as 状态,
a.CHANGEDATE as 记录变更时间,a.SEQNUM as 序列号,a.GROUPID as 组网ID
from gdib.HSC_MEM_PRODUCT@cxcs_from_gdbossa_link a,mgsj.sg_cm_subs_subscriber b,
gdyy.cm_subs_subscriber@ng_esop_dblk c,sgib.pc_pp_product d
where a.GROUPID=c.subsid and a.SUBSID=b.subsid and a.PRODID=d.PRODID and a.REGION like '%751%' and a.PRICE>0
and a.ENDDATE>=to_date('2015-03-25 0:0:0','yyyy-mm-dd hh24:mi:ss') and
c.servnumber='21005100047';
spool off; 展开
spool /home/tanxb/集团组网成员核查.txt;
select /*DQ_SG_20150323_3842329*/ c.SERVNUMBER,b.servnumber,d.PRODNAME as 产品名称,
a.SUBSPRODID as 用户产品实例编号,a.SUBSID as 成员id,a.REGION as 地区,a.PRODID as 产品编码,a.PACKAGEID as 所属产品包编码,
a.PACKAGEPRODID as 产品包实例编号,a.TARIFFITEMID as 计费ID,
a.STANDARDTARIFF as 标价,a.PRICE as 售价,a.STARTDATE as 开始时间,a.ENDDATE as 结束时间,
(case when a.STATUS='1' then '生效' when a.STATUS='2' then '作废' else '预生成' end) as 状态,
a.CHANGEDATE as 记录变更时间,a.SEQNUM as 序列号,a.GROUPID as 组网ID
from gdib.HSC_MEM_PRODUCT@cxcs_from_gdbossa_link a,mgsj.sg_cm_subs_subscriber b,
gdyy.cm_subs_subscriber@ng_esop_dblk c,sgib.pc_pp_product d
where a.GROUPID=c.subsid and a.SUBSID=b.subsid and a.PRODID=d.PRODID and a.REGION like '%751%' and a.PRICE>0
and a.ENDDATE>=to_date('2015-03-25 0:0:0','yyyy-mm-dd hh24:mi:ss') and
c.servnumber='21005100047';
spool off; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |