Name
SET DEFINE
Synopsis
The SET DEFINE command changes the prefix character used to mark substitution variables. You can use SET DEFINE to turn variable substitution off.
Syntax
SET DEF[INE] {OFF | ON | prefix_char}Parameters
- SET DEF[INE]
Is the command, which may be abbreviated SET DEF.
- OFF
Disables variable substitution.
- ON
Enables variable substitution, and resets the substitution prefix character back to the default ampersand (&) character. Variable substitution is on by default.
- prefix_char
Is the new substitution prefix character.
When you start SQL*Plus, variable substitution will be on by default, and the default prefix character is an ampersand. If you are running a script that uses ampersands in text strings, you may want to change the prefix character to something else. If your script doesn't use substitution variables, you may find it easiest to turn the feature off.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access