import sqlite3 conn = sqlite3.connect('y_user_data2.db') cursor = conn.cursor() #create table
cursor.execute('create table users (id varchar(20) primary key, name varchar(20))') #insert data
cursor.execute('insert into users (id, name) values (\'1\', \'Michael\')') # cursor.rowcount
# cursor.close() conn.commit()
# conn.close()