- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ORCLE输出文本荟萃(国外英文资料)
ORCLE输出文本荟萃(国外英文资料)
DESCRIPTION:
User = username/password @ora_sid
CMD = select statement, eg: select * from TAB
SQL = SQL file name
The head = print column header (Yes | No)
Record = seperator string between every rows
Field = seperator string between fields
Output = output file name (default output file: unload. TXT)
(2)
C: \ unload.exe user = jajf / * * @jadb8 CMD = select county_code, phone_id from zk. cm_user @crm_clone where county_code = 9657 field = 0x09 record = 0x0a output = 9657. TXT
Export the area county and number fields in jizhou district, the fields are separated by newline characters, each record line is changed, and the exported data is 9657. TXT, under the current file directory.
Rows unloaded at 2010-07-1817:09:26
272136 rows unloaded at 2010-07-18 17:10:54
Unloaded to output file 9657. TXT 272136 rows.
(3)
Through custom SQL file export data, SQL file called c.s. ql, file content for the select * from cj_county, has exported data TAB are separated, the exported data file defaults to unload. TXT, export data in the current directory.
C: \ exe
Rows unloaded at 2010-07-18 17:22:53
Rows unloaded at 2010-07-18 17:22:53
Unloaded to output file unloaded. TXT 14 rows.
(4)
Combined with the batch command, can save the input command of trival, save the following contents for unload. Bat, on disk c, open the CMD command line, under the command line input unload. Bat, relevant parameters can be derived according to clew input text file.
@ echo off
CLS
Color 0 a
The title ORACLE database table quickly exports the text tool
CD \
Echo -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- --
: dis_run
The Rem database exports text files
Set the user =
Set/p user = please enter the database user name password (format: username/password @dbname:) :
If % u
文档评论(0)