Why doesn't ORACLE allow consecutive newline characters in commands?

后端 未结 3 718
星月不相逢
星月不相逢 2021-01-02 13:26

I write:

CREATE TABLE Person ( 
name CHAR(10),

ssn INTEGER);

and save it to a file "a.sql".

If I then run it by typing &quo

3条回答
  •  春和景丽
    2021-01-02 14:00

    By default, SQLPlus does terminate (but not execute) a statement when a blank line is entered. It has always done this. It probably seemed like a good idea in the days before screen editors and query tools.

    You can change that default behaviour with

    set SQLBLANKLINES on

    In which case you'd have to enter a line with just a full stop to terminate (but not execute) a statement.

提交回复
热议问题