Execute a single statement that does not return a result set:
cursor.execute("CREATE TABLE T1 (ID INTEGER PRIMARY KEY, C2 VARCHAR(255))")
cursor.close()
Use question mark parameter binding to insert values into the T1 table created above. The parameter values are supplied as a Python sequence and can be literal values or variable names. This example uses literal values:
We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our
use of cookies. Find out moreAccept
Description