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
Post a Comment