把表中数据导成TXT文件脚本.
Creating a ascii text file of oracle table data with pipe delimited columns. 第二种方法:利用Oracle中spool 新建一个sql脚本 d:\czrk.sql,代码如下: SET echo off SET feedback off SET newpage none SET pagesize 50000 SET linesize 20000 SET verify off SET pagesize 0 SET term off SET trims ON SET heading off SET trimspool ON SET trimout ON SET timing off SET verify off SET colsep | spool d:\czrk.txt SELECT sfzh || ',' || xm || ',' || xb || ',' || csrq || ',' || mz|| ',' || xzqh|| ',' || jzdz FROM m_czrk WHERE rownum<=10000; spool off sqlplus连接上数据库,执行脚本 sqlplus dc/dc@mydb; sqlplus>@d:\czrk.sql 这样就在d盘下生成了一万条数据了。
原文来自: |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21835737/viewspace-711778/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21835737/viewspace-711778/