cursor.execute(query, args)
Description
This method executes the parameterized SQL statements (that is, placeholders instead of SQL literals).
Prototype
cursor.execute(query,args)
Parameters
|
Keyword |
Parameter Description |
|---|---|
|
query |
SQL statement that you want to execute. |
|
args |
Variable list, which matches the %s placeholder in the query. |
Return Value
None
Constraints
cursor.execute(query,args) queries only one SQL statement at a time and does not stack multiple SQL statements.
cursor.execute(query,args) does not use \0 in the entered SQL statement.
Examples
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