12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using <strong>SQL</strong>*Plus----------- ------------------------- ----------125 Nayer ST_CLERK10.2.8.2 Defining a Variable Value for a QueryIn Example 10–2, the variable &jobid is defined prior to running the <strong>SQL</strong> statementand the defined value is substituted for the variable when the statement is executed.Example 10–2 Prompting for a Variable-- define a variable value for a query as followsDEFINE jobid = "ST_CLERK"-- run a query using the defined value for jobid (ST_CLERK)SELECT employee_id, last_name FROM employees WHERE job_id = '&jobid';<strong>SQL</strong>*Plus: Usage Information 10-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!