让SQLPLUS识别空行
2012-05-03 15:08 红色闪电 阅读(257) 评论(0) 收藏 举报因SQL脚本含有一些空行,造成语句断裂,产生“SP2-0734: unknown command ”错误。使用以下方法可以避免。
错误现象:
SQL> select id from tt
where id=1;
2 SQL> SP2-0042: unknown command "where id=1" - rest of line ignored.
修改方法:
SQL> SET SQLBLANKLINES ON
SQL> select id from tt
2
3 where id=1;
ID
----------
1
1
1
1
1
浙公网安备 33010602011771号