I have created the Tuple as below. I want to insert the follwoing into the SQL database (using import pyodbc).
tmpData=[('PRP', 'PRP-000005', 'In Progress', 'UYR', 'uYT'), ('PRP', 'PRP-000006', 'In Progress', 'UYR', 'uYT'), ('PRP', 'PRP-000007', 'In Progress', 'UYR', None), ('PRP', 'PRP-000008', 'In Progress', 'UYR', 'TCP'), ('PRP', 'PRP-000009', 'In Progress', 'UYR', 'OTH'), ('PRP', 'PRP-000010', 'In Progress', 'UYR', None),]
conn = pyodbc.connect('Driver={SQL Server};'
'Server=Python;'
'Database=Test;'
'Trusted_Connection=yes;')
cursor = conn.cursor()
sql = "insert into [TBListformstables] values???????
cursor.execute(sql)
I am facing a problem in writing this to SQL. What would come at values so that Tuple can be passed