【问题标题】:Extract data from oracle db in .txt format从 oracle db 中提取 .txt 格式的数据
【发布时间】:2017-07-23 15:56:52
【问题描述】:

如何从 oracle db 中提取 .txt 格式的数据 & 我需要将此文件发布到 sap 服务器。

请指导我。

【问题讨论】:

    标签: sql oracle export-to-csv


    【解决方案1】:

    您可以在 sql/plus 中使用spool,如下所示,它将写入result.txt

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

    更多信息请参见Here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-03
      • 1970-01-01
      • 2021-06-03
      • 1970-01-01
      • 1970-01-01
      • 2014-06-13
      • 1970-01-01
      相关资源
      最近更新 更多