disconnect

Description

Drops the current connection to a database.

Syntax

disconnect [{identifier | string | hostvar} | current | all]

Parameters

{identifier | string | hostvar}

is the login name you are using to make the connection.

  • identifier – is the identifier you are using for the connection information.

  • string – is the string you are using for the connection information.

  • hostvar – is the variable information for the host name and port.

current

indicates that you are disconnecting the current connection.

all

indicates that you are disconnecting all connections.

Examples

Example 1

Disconnects all connections:

disconnect all

Usage

Permissions

Any user can execute this command.

See also

connect, set connection