Oracle write to file

前端 未结 5 898
礼貌的吻别
礼貌的吻别 2021-01-06 03:18

I am running oracle and have a query which pulls some results from the database. I would like to write the results as a text file. How would I go about doing this?

M

5条回答
  •  心在旅途
    2021-01-06 04:08

    If you are using PL/SQL then you can use the UTL_FILE package, the difference from using sql+ spool is that the files are written to the server file system. UTL_FILE has a number of limitations so an alternative on the server side would be to use Java stored procedures.

提交回复
热议问题