Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> conn = sqlite3.connect(':memory:')
- >>> c = conn.cursor()
- >>> c.execute("CREATE table raman(ATOMIC NUMBER INT, SYMBOL TEXT, ROW INT , COLUMN INT)")
- <sqlite3.Cursor object at 0x000000000296E490>
- >>> c.execute("INSERT INTO raman VALUES(1,'H',1,'1')");
- <sqlite3.Cursor object at 0x000000000296E490>
- >>> conn.commit()
- >>> for row in c.execute('SELECT * FROM raman'):
- ... row
- ...
- (1, 'H', 1, 1)
Add Comment
Please, Sign In to add comment