Using the DEFINE Command with& Substitution Variable
Syntax:
Step 1:
Create the substitution variable using the DEFINE
command.
DEFINE employee_num = 200
Step 2:
Use a variable prefixed with an ampersand (&) to substitute the value in the SQL statement.
SELECT employee_id, last_name, salary, department_id
FROM employees
WHERE employee_id = &employee_num ;
No comments:
Post a Comment