ASA Database Administration Guide
Database Options
Alphabetical list of options
Sets the string that indicates the end of a statement in Interactive SQL.
String
Semi-colon (;)
You can specify a command delimiter to indicate the end of a SQL statement. This command delimiter can be any sequence of characters (including numbers, letters, and punctuation), but it cannot contain embedded blanks. As well, it can contain a semicolon, but only as the first character.
If the command delimiter is set to a string beginning with a character that is valid in identifiers, the command delimiter must be preceded by a space. This command delimiter is case sensitive. You must enclose the new command delimiter in single quotation marks.
Note that if the command delimiter is a semicolon (the default), no space is required before the semicolon.
SET OPTION COMMAND_DELIMITER='~'
set temporary option command_delimiter = ' select'; message 'hello' select
You can also use Interactive SQL's -d
command line option to set the command delimiter without including a SET TEMPORARY OPTION COMMAND_DELIMITER statement in a .SQL file. For example, if you have a script file named test.sql which uses tildes (~) as command delimiters, you could run:
dbisql -d "~" test.sql