DB2 Version 9.7 for Linux, UNIX, and Windows

Executing SQL statements in Python

After connecting to a database, use functions available in the ibm_db API to prepare and execute SQL statements. The SQL statements can contain static text, XQuery expressions, or parameter markers that represent variable input.