import sqlite3cxn = sqlite3.connect('sqlite_test/test')cur = cxn.cursor()cur.execute('CREATE TABLE users(login VARCHAR(8), uid INTEGER)')cur.execute('INSERT INTO users VALUES("john", 100)')cur.execute('INSERT INTO users VALUES("jane", 110)')cur.execute('SELECT * FROM users')for eachUser in cur.fetchall(): print eachUsercur.execute('DROP TABLE users')cur.close()cxn.commit()cxn.close()
Name (required)
email (will not be published) (required)
Website