a="1"
b="2"
c="3"
d="4"
user1 = {"id": 100, "name": "Rumpelstiltskin", "dob": "12/12/12", "item": [{"name": "sakthi"}]}
con = sqlite3.connect(database=r'data.db')
cur = con.cursor()
cur.execute("INSERT INTO e_transations (eid,sl,id,datee,ent) VALUES (?,?,?,?,?)",(a,b,c,d,user1,))
con.commit()
how to insert dictionary in sqlite3 using python
user1 was save to single column and single row
EX : ( 1 2 3 4 {"id": 100, "name": "Rumpelstiltskin", "dob": "12/12/12", "item": [{"name": "sakthi"}]})
save above format in sqlite3