How to output oracle sql result into a file in windows?

后端 未结 5 675
旧时难觅i
旧时难觅i 2020-12-13 13:32

I tried

select * from users 
save D:\\test.sql create;

But SQL plus gives me \"no proper ended\" How to specify path in oracle sql in windo

5条回答
  •  再見小時候
    2020-12-13 14:21

    just to make the Answer 2 much easier, you can also define the folder where you can put your saved file

        spool /home/admin/myoutputfile.txt
        select * from table_name;
        spool off;
    

    after that only with nano or vi myoutputfile.txt, you will see all the sql track.

    hope is that help :)

提交回复
热议问题