您的位置:程序门 -> vb -> 数据库(包含打印,安装,报表)



oracle问题 ,请各位帮忙!!!


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


oracle问题 ,请各位帮忙!!!
发表于:2007-11-16 19:00:17 楼主
我用spool   生成的文本如下:
sql> spool   d:\123.txt
sql> select   service_code ¦ ¦',' ¦ ¦oppose_number   from   "aa"   where   rownum <=10;
sql> spool   of;
生成的结果为
sql>   select   service_code ¦ ¦',' ¦ ¦oppose_number   from   "aa"   where   rownum <=10;
男,张三
男,张三
男,张三
男,张三
男,张三
男,张三
男,张三
男,张三
男,张三
男,张三
sql>   spool   off;
怎么才能把第一行和最后   一行去掉,不显示!也就是sql>   select   service_code ¦ ¦',' ¦ ¦oppose_number   from   "aa"   where   rownum <=10;和sql>   spool   off;不显示.
第二个问题:
我想把sqlplus     system/sa@linshan

spool   d:\123.txt
select   service_code ¦ ¦',' ¦ ¦oppose_number   from   "aa"   where   rownum <=10;
spool   of;
这两句放在一个批处理文件下,或者是一个批处理一个文件调用也行
发表于:2007-11-19 09:23:561楼 得分:0
??没人会?


快速检索

最新资讯
热门点击