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

Command Reference, 21 of 38


PRINT

PRI[NT] [variable ...]

Displays the current value of bind variables. For more information on bind variables, see your PL/SQL User's Guide and Reference.

Terms | Usage | Examples | Top

Refer to the following for a description of the clause or term:

variable ...

Enter PRINT with no variables to print all bind variables.

Usage | Terms | Examples | Top

Bind variables are created using the VARIABLE command. For more information and examples, see the VARIABLE command in this chapter.

You can control the formatting of the PRINT output just as you would query output. For more information.

To automatically display bind variables referenced in a successful PL/SQL block or used in an EXECUTE command, use the AUTOPRINT clause of the SET command. For more information, see the SET command in this chapter.

Examples | Terms | Usage | Top

The following example illustrates a PRINT command:

Keyboard icon
VARIABLE n NUMBER
BEGIN
:n := 1;
END;
/

Screen icon
PL/SQL procedure successfully completed.

Keyboard icon
PRINT n
Screen icon
         N
----------
         1

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