Skip to Main Content
Oracle SQL*Plus Pocket Reference
book

Oracle SQL*Plus Pocket Reference

by Jonathan Gennick
April 2000
Intermediate to advanced content levelIntermediate to advanced
94 pages
1h 52m
English
O'Reilly Media, Inc.
Content preview from Oracle SQL*Plus Pocket Reference

Name

EXIT

Synopsis

EXIT [SUCCESS | FAILURE | WARNING | 
     value | user_variable | :bind_variable]
     [COMMIT | ROLLBACK]

The EXIT command is used to terminate a SQL*Plus session and return to the operating system. For example:

EXIT
EXIT SUCCESS
EXIT FAILURE ROLLBACK

Parameters

SUCCESS

Returns a success status. This is the default.

FAILURE

Returns a failure status.

WARNING

Returns a warning status.

value

Returns an arbitrary value as the status.

user_variable

Returns the value of the specified user variable as the status.

Note

SQL.SQLCODE is considered a user variable, as are all the other variables listed in Table 1.8.

:bind_variable

Returns the value of the specified bind variable as the status.

COMMIT

Causes SQL*Plus to commit before exiting. This is the default.

ROLLBACK

Causes SQL*Plus to roll back any open transaction before exiting.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle SQL*Plus Pocket Reference, 3rd Edition

Oracle SQL*Plus Pocket Reference, 3rd Edition

Jonathan Gennick
Expert Oracle Exadata

Expert Oracle Exadata

Kerry Osborne, Randy Johnson, Tanel Pöder

Publisher Resources

ISBN: 1565929411Catalog PageErrata