Name
DEFINE
Synopsis
The DEFINE command creates a user variable (or substitution variable) and may assign it a value. DEFINE may be used to list the value of a particular variable, or of all variables. DEFINE is discussed in Chapter 8.
Syntax
DEF[INE] [variable_name[=text]]
Parameters
- DEF[INE]
Is the command, which may be abbreviated DEF. Entering DEFINE by itself causes SQL*Plus to display a list of all currently defined user variables.
- variable_name
Is the name of the variable you want to create. Issue the command with only a variable name, and SQL*Plus will display the current contents of that variable if it exists.
- text
Is the text you want to assign to that variable. This may be optionally enclosed by single or double quotes, which you should use any time the value contains spaces or any other nonalphabetic character.
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