cursor.execute(query,vars_list)
Function
This method executes the parameterized SQL statements (that is, placeholders instead of SQL literals). The psycopg2 module supports placeholders marked with %s.
Prototype
curosr.execute(query,vars_list)
Parameters
Keyword |
Description |
---|---|
query |
SQL statement to be executed. |
vars_list |
Variable list, which matches the %s placeholder in the query. |
Return Value
None
Example
For details, see Examples: Common Operations.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot