Download Informix Guide to SQL: Syntax, Version 6.0

Transcript
DISCONNECT
DISCONNECT
Purpose
The DISCONNECT statement terminates a connection between an application
and a database server.
Syntax
+
DISCONNECT
CURRENT
ESQL
DEFAULT
ALL
' connection name '
conn_nm variable
connection name
is a quoted string that identifies the connection. It is the
connection name assigned by the CONNECT statement
when the initial connection was made.
conn_nm variable
is an ESQL/C or ESQL/COBOL host variable that holds a
character string that identifies the connection. The value of
conn_nm variable is the connection name assigned by the
CONNECT statement when the initial connection was made.
Usage
The DISCONNECT statement lets you terminate a connection to a database
server. If a database is open, it closes before the connection drops.
Syntax
1-167