mirror of
https://github.com/github/codeql.git
synced 2026-04-14 11:34:00 +02:00
8 lines
228 B
Python
8 lines
228 B
Python
# taken from https://mysqlclient.readthedocs.io/user_guide.html#some-examples
|
|
import MySQLdb
|
|
db=MySQLdb.connect(passwd="moonpie",db="thangs")
|
|
|
|
c=db.cursor()
|
|
max_price=5
|
|
c.execute("some sql", (max_price,)) # $ getSql="some sql"
|