oracle11g - how to save the data in csv file and then send that to a folder using sql? -


i using oracle 11g plsql developer. requirement data retrieval should automatic. means when query data in oracle table , data should convert .csv file , should send specific folder.

example:

assume student_sub1 table have students subject1 data.when write query select * student_sub1 student=1, student1 data should convert .csv file , .csv file should go student1 folder.

hence requesting suggest me how write sql code convert data .csv file , create folder send file using oracle.

your inputs helps me alot.

see if this post helps. solution works when running query sql developer.

edit: btw, if want in script. think can run using spool command output results file. this.

 set echo off        set feedback off        spool student1.csv;        select id||','||name||','||grade student1;        spool off;  

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -