HomeMogDBMogDB StackUqbar
v2.1

Documentation:v2.1

Supported Versions:

Other Versions:

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

Table 1 curosr.execute parameters

Keyword Description
query SQL statement to be executed.
vars_list Variable list, which matches the %s placeholder in the query.

Return Value

None

Examples

For details, see Example: Common Operations.

Copyright © 2011-2024 www.enmotech.com All rights reserved.