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 "@a" in the SQL*Plus command prompt, it will tell me that the line starting with "ssn" is not recognized as a command, and is ignored.
From what I gather, it seems that sqlplus terminates a command if it encounters multiple newline characters in a row. Is this an accurate statement? If so, does anyone know if this is necessary/ why it chooses to do this?
I don’t know about the why, but a completely blank line terminates a command in SQL*Plus.
Quote from the SQL*Plus docs :
Ending a SQL Command: You can end a SQL command in one of three ways:
You can also change how blank lines are treated with SET SQLBLANKLINES