Skip to content
Developer Edition runs on one host and does not require a product license file. Need multi-host deployment or performance testing at scale? Explore Enterprise Edition

SESSION CLOSE command

The SESSION CLOSE command closes the current session and returns the ID of the closed session.

Syntax

session_close_command
SESSION CLOSE

session_close_command ::=
    'SESSION' 'CLOSE'

Examples

Close the current session

SESSION CLOSE

Return:

+---------------------+
| session_id          |
+---------------------+
| 7589122652750739997 |
+---------------------+