简体   繁体   English

以.txt格式从Oracle数据库中提取数据

[英]Extract data from oracle db in .txt format

How to extract data from oracle db in .txt format & i need to post this files to sap server. 如何以.txt格式从Oracle数据库中提取数据,我需要将此文件发布到SAP服务器。

please guide me. 请指导我。

You can use spool in sql/plus like below which will write to result.txt 您可以在sql / plus中使用spool ,如下所示,它将写入result.txt

spool result.txt    
select col1, col2, ... , coln from your_table;    
spool off 

See Here for more information 有关更多信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM