SET ECHO
SET ECHO [ON | OFF]
This command causes executed SQL commands to be displayed on the output device prior to their execution.You may wish to turn echo off as part of a script file.The isql
default is for echo to be off.The command without any parameters acts as a toggle and turns echo on if it is currently off and vice versa.
SQL> set echo on; SQL> select count(*) from rdb$database; select count(*) from rdb$database; COUNT ============ 1 SQL> set echo off; set echo off; SQL> select count(*) from rdb$database; COUNT ============ 1
This command can be handy in a script file.If you receive an error, it can sometimes be difficult to determine the exact SQL statement that caused it.If you set echo on
in your script, you will at least be able to determine exactly which statement failed.