码迷,mamicode.com
首页 > 数据库 > 详细

oracle 文件导出

时间:2016-07-15 19:21:38      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

$ cat me.sql
set echo off
set term off
set line 1000 pages 0
set feedback off
set heading off
set trimspool on
spool /aiapp/tungsten/shell/o2m/test.sql
select ‘INSERT INTO res_d_mphone (SERIAL_NUMBER,MOFFICE_ID,CODE_STATE_CODE,BUSI_TYPE_CODE,USE_TYPE_CODE,CODE_TYPE_CODE,STOCK_ID,POOL_CODE,CITY_CODE,EPARCHY_CODE,PROVINCE_CODE,NUMBER_SOURCE,IS_ASSIGN,IS_PRETTYNUM,IS_PREPARE_MATCH,IS_PREPARE_OPEN,IS_LOCK,RESERVE_TIME,TIME_IN,STAFF_ID,BATCH_ID,REMARK) VALUES (‘‘‘||SERIAL_NUMBER||‘‘‘,‘‘‘||MOFFICE_ID||‘‘‘,‘‘‘||CODE_STATE_CODE||‘‘‘,‘‘‘||BUSI_TYPE_CODE||‘‘‘,‘‘‘||USE_TYPE_CODE||‘‘‘,‘‘‘||CODE_TYPE_CODE||‘‘‘,‘‘‘||STOCK_ID||‘‘‘,‘‘‘||POOL_CODE||‘‘‘,‘‘‘||CITY_CODE||‘‘‘,‘‘‘||EPARCHY_CODE||‘‘‘,‘‘‘||PROVINCE_CODE||‘‘‘,‘‘‘||NUMBER_SOURCE||‘‘‘,‘‘‘||IS_ASSIGN||‘‘‘,‘‘‘||IS_PRETTYNUM||‘‘‘,‘‘‘||IS_PREPARE_MATCH||‘‘‘,‘‘‘||IS_PREPARE_OPEN||‘‘‘,‘‘‘||IS_LOCK||‘‘‘,‘‘‘||RESERVE_TIME||‘‘‘,‘‘‘||TIME_IN||‘‘‘,‘‘‘||STAFF_ID||‘‘‘,‘‘‘||BATCH_ID||‘‘‘,‘‘‘||REMARK||‘‘‘);‘ from res_d_mphone_bak;
spool off
set trimspool off
set heading on
set feedback on
set term on
set echo on
exit

 

oracle 文件导出

标签:

原文地址:http://www.cnblogs.com/book-gary/p/5598948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!