Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How this possible ???
i try it but not a create table field and datatype
in dictionary list etc



#ab = {feld:field , dat:data}

dictionary >> #ab = dict()
#ab['f'] =field
#ab['d'] =data
List >>>>> ab = [field,data]



cur.execute('create table '+tb+'('+ab[0]+' '+ab[1]+' )')
con.commit()
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900