Allow Blank Lines In Your SQL Statements: SQLBLANKLINES
use the following SQL*Plus statement: SET SQLBLANKLINES ON
This statement has two options to turn ON or OFF blank lines. If blank lines are turned on, then you are allowed to use blank lines within the lines of your SQL statement.
By default the blank lines are OFF, meaning it is not allowed to have blank lines within a SQL statement. Below is an example on the usage
SQL>show SQLBLANKLINESsqlblanklines OFFSQL>SET SQLBLANKLINES ONSQL>select count(*) from dba_users23 where username like 'D%'; COUNT(*)---------- 11SQL>SET SQLBLANKLINES OFFSQL>select count(*) from dba_users23 where username like 'D%';SP2-0734: unknown command beginning "where user..." - rest of line ignored.You can also use a shorthand form of this command:
set SQLBL ONshow SQLBL
And that is the tip for today
Comments
Post a Comment