Help Center/
GaussDB/
Developer Guide(Centralized_8.x)/
Application Development Guide/
ECPG-based Development/
Running SQL Commands/
Embedded SQL Commands/
SET CONNECTION
Updated on 2024-06-03 GMT+08:00
SET CONNECTION
Function
Sets a database connection.
Syntax
SET CONNECTION [ TO | = ] connection_name
Parameters
- connection_name
Name of a database connection established by the CONNECT command.
Examples
EXEC SQL SET CONNECTION TO con2; EXEC SQL SET CONNECTION = con1;
Parent topic: Embedded SQL Commands
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot