Erstellen einer Datenbank¶
Importiert das sqlite-Modul:
1import sqlite3
Erstellt eine Datenbank:
4conn = sqlite3.connect("library.db") 5 6cursor = conn.cursor()
Erstellt eine Tabelle
9cursor.execute("""CREATE TABLE books 10 (title text, language text, author text, license text, 11 release_date text) 12 """)