oracle 批处理 执行结果,在windows下怎么在批处理文件里面执行sqlplus并得到结果?...
謝謝,進了一步
1.txt是
SQL> show sga
Total System Global Area 6224347136 bytes
Fixed Size? ?? ?? ?? ?? ?? ?2030056 bytes
Variable Size? ?? ?? ?? ? 838862360 bytes
Database Buffers? ?? ?? ?5368709120 bytes
Redo Buffers? ?? ?? ?? ?? ?14745600 bytes
SQL> select accno||'|'||custlvlb from whrept.amsfm21 t1,scdata.cisfm10 t2
2??where t1.custid=t2.custid and t2.custlvlb in??('1','2','3','4')
3??and voutyp<>'317' and voutyp<>'318' and voutyp<>'319' and voutyp<>'320' and voutyp<>'328';
ACCNO||'|'||CUSTLVLB
----------------------------------
001010194060200017865|1
304010191240400017532|2
001010194060200018001|1
001010194060200018110|1
304010191240400017859|2
001010194060200018437|1
001010194060200018546|1
187010194060200055147|1
187010194060200057490|2
001010194060200006079|2
224010191240200000571|2
ACCNO||'|'||CUSTLVLB
----------------------------------
001010194060200018655|2
224010194060200024970|2
001010194060200018764|1
001010194060200018982|1
001010194060200019118|1
001010194060200019227|1
實際我只想要這樣的格式,中間不要----和其他的,
第一行只要字段名,后面是他的一條條明細記錄直到最后一條,中間不要任何別的。
ACCNO|CUSTLVLB
001010194060200018655|2
224010194060200024970|2
001010194060200018764|1
001010194060200018982|1
001010194060200019118|1
總結
以上是生活随笔為你收集整理的oracle 批处理 执行结果,在windows下怎么在批处理文件里面执行sqlplus并得到结果?...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle java rmi 漏洞,O
- 下一篇: 北京腹部ct多少钱