[Tutor] what is wrong with this code?
Norman Khine
norman at khine.net
Mon Apr 26 18:45:09 CEST 2010
hello, i have a list of tables i want to drop:
user_tables = ['notification', 'userNotification', 'product_comments',
'product_donation_paypalTransaction', 'product_donation',
'productList_recommended', 'productList_user_assoc',
'profile_values']
drop_user_tables = """DROP TABLE IF EXISTS db2.%s"""
try:
cursor.execute(drop_user_tables, (x for x in user_tables))
thanks
More information about the Tutor
mailing list