From: Colin Bell <Colin.B<ell@as...> - 2004-09-19 22:08:08
> -----Original Message-----
> From: Federico Tello Gentile [mailto:federicotg@...]
> Sent: Friday, September 17, 2004 10:11 PM
> To: squirrel-sql-users@...
> Subject: [Squirrel-sql-users] Empty lines stop script execution
> If I load a script and run it from the SQL view the execution stops
> when it finds an empty line.
> select * from table1;
> select * from table2;
> select * from table3;
> Only 2 statements would be executed. This makes sense with lots of
> inserts or updates or DDL statements, but it works with any SQL
> I have ! setted as statement separator, but happens with ; as well.
> Any idea why this happens ond if it can be avoided?
From the Help file
When the SQL tab is selected pressing <ctrl><enter>, taking the Execute SQL
option from the Session menu or pressing the Execute SQL button in the
session window tool bar will execute the entered SQL.
If a single statement is entered then pressing <ctrl><enter> will execute
just that statement.
If you only want to execute part of the SQL entered then highlight the SQL
that you want to execute and press <ctrl><enter>.
To only execute a single statement amongst several statements (separated
from the other statements by at least one blank line) within the SQL entry
area then click on the line containing the statement that you want to
execute and press <ctrl><enter>.
Get latest updates about Open Source Projects, Conferences and News.