Erstellen einer Datenbank#

  1. Importiert das sqlite-Modul:

    1import sqlite3
    
  2. Erstellt eine Datenbank:

    4conn = sqlite3.connect("library.db")
    5
    6cursor = conn.cursor()
    
  3. Erstellt eine Tabelle

     9cursor.execute(
    10    """CREATE TABLE books
    11                  (title text, language text, author text, license text,
    12                          release_date text)
    13               """
    14)