Help Center/
GaussDB/
Developer Guide(Centralized_2.x)/
Application Development Guide/
Psycopg-based Development/
Executing SQL Statements
Updated on 2023-10-23 GMT+08:00
Executing SQL Statements
- Construct an operation statement and use %s as a placeholder. During execution, psycopg2 will replace the placeholder with the parameter value. You can add the RETURNING clause to obtain the automatically generated column values.
- The cursor.execute method is used to perform operations on one row, and the cursor.executemany method is used to perform operations on multiple rows.
Parent topic: Psycopg-based Development
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