iSQL*Plus User's Guide and Reference
Release 9.0.1

Part Number A88826-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Using iSQL*Plus , 5 of 9


Entering Substitution Variables

System variables specified with the SET command can affect iSQL*Plus behavior. SET DEFINE, SET ESCAPE, SET VERIFY ON, and SET CONCAT affect variable substitution behavior, and should be set in iSQL*Plus before attempting to execute a script. For further information about these SET options, see the SET command in Chapter 5, "Command Reference".

'&' variables are parsed in iSQL*Plus before the script is sent to the SQL*Plus engine, and then in the SQL*Plus engine. You should synchronize variable substitution with one of the two following options:

The Define Substitution Variables Screen

When iSQL*Plus executes a script containing substitution variables, the Define Substitution Variables screen is displayed. For example, when you enter:

BREAK ON &SORTCOL
SELECT &SORTCOL, SALARY
FROM &MYTABLE
WHERE SALARY > 12000
ORDER BY &SORTCOL

iSQL*Plus displays:


Text description of subvar.gif follows.
Text description of the illustration subvar.gif

Different web browsers, and the size of the web browser window, may affect the appearance and layout of the Define Substitution Variables screen.

Password icon Password Icon

Click the Password icon to change your password. The Change Password screen is displayed.

Log Out icon Log Out Icon

Click the Log Out icon to exit iSQL*Plus. You are returned to the Log In screen.

Help icon Help Icon

Click the Help icon to access the iSQL*Plus User's Guide and Reference in a separate browser window.

Define Substitution Variables

Enter values for the substitution variables. For example, enter LAST_NAME in the sortcol field, and EMP_DETAILS_VIEW in the mytable field of the example script.

Submit for Execution

Click the Submit for Execution button to execute the script in the input area with the substitution variable values you entered. Depending on the Output dropdown list selection, the results of the execution are displayed, or saved to a file.

Cancel

Click the Cancel button to return to the Work screen without executing the script in the input area.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback