This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbpath = "/.../test.db" | |
>>> import sqlite3 | |
>>> #Create the database. | |
>>> connection = sqlite3.connect(dbpath) | |
>>> cursor = connection.cursor() | |
>>> cursor.execute("CREATE TABLE Test (testcolumn TEXT);") | |
<sqlite3.Cursor object at 0x111952ce0> | |
>>> cursor.execute("INSERT INTO Test VALUES(NULL);") | |
<sqlite3.Cursor object at 0x111952ce0> |