Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Development
Bind Variables and Substitution Variables
Bind variables
Substitution variables
UPDATE can be used to set the Region value for each column.
However, this is tedious since the command must be reentered
for each state
HTTP 5105 Database Design and Development 12 August 4, 2017
Substitution Variables
Rather than type the same command again and again to modify
the column with the necessary values, we can use substitution
variables
A substitution variable in a SQL command instructs Oracle to use
a substituted value in place of the variable when command is
executed
To include a substitution variable in a SQL command, use the
ampersand (&) followed by the name to be used for the variable
This value will be substituted with actual data when the command
is executed