Insert values in sqlite table using python

import sqlite3 as db
 
conn = db.connect('mytest.db')
cursor = conn.cursor()
cursor.execute('insert into person values("Mani","23","22,2nd cross, ka")')
cursor.execute('insert into person values("Raja","22","5th cross, ka")')
conn.close()

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.