]> begriffs open source - ai-pg/blob - full-docs/txt/ecpg-sql-set-connection.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / ecpg-sql-set-connection.txt
1
2 SET CONNECTION
3
4    SET CONNECTION — select a database connection
5
6 Synopsis
7
8 SET CONNECTION [ TO | = ] connection_name
9
10 Description
11
12    SET CONNECTION sets the “current” database connection, which is the one
13    that all commands use unless overridden.
14
15 Parameters
16
17    connection_name #
18           A database connection name established by the CONNECT command.
19
20    CURRENT #
21           Set the connection to the current connection (thus, nothing
22           happens).
23
24 Examples
25
26 EXEC SQL SET CONNECTION TO con2;
27 EXEC SQL SET CONNECTION = con1;
28
29 Compatibility
30
31    SET CONNECTION is specified in the SQL standard.
32
33 See Also
34
35    CONNECT, DISCONNECT