Problem Statement : I am exporting the output of sql query (executed via batch file) of AWS RDS instance into a csv file.
Work done till now : I have created the batch file in which I am giving the below command : Code 1 : sqlplus -s username/password@instance_name @test3.sql > output.csv
where test3.sql is a input file output.csv is an output file Code 2 :
set head off
set feed off
set pagesize 0
spool C:\Users\-sysop-ansimr\Desktop\a.csv
select * from task;
spool off
set head on
set feed 6
quit