1.sqlplus test/test123@publicdb
2.spool on
3.set heading off
4.spool $HOME/testspool.txt
5.select sysdate from dual;
6.spool off
本文介绍了一组使用 SQL Plus 的示例命令,包括连接数据库、设置显示选项、将查询结果输出到文件等操作。
1.sqlplus test/test123@publicdb
2.spool on
3.set heading off
4.spool $HOME/testspool.txt
5.select sysdate from dual;
6.spool off

被折叠的 条评论
为什么被折叠?