Die Suche ergab 1 Treffer

von Löwenzahn
Sonntag 7. Oktober 2018, 20:07
Forum: Datenbankprogrammierung mit Python
Thema: Syntax error SQLite3
Antworten: 2
Zugriffe: 1324

Syntax error SQLite3

Hallo zusammen.

Wenn ich versuche folgenden Programmcode auszuführen :

import sqlite3

connection = sqlite3.connect("datenbank.db")
cursor = connection.cursor()


cursor.execute("CREATE TABLE IF NOT EXISTS stuff(username TEXT, age INTEGER)")

cursor.execute("INSERT INTO stuff('Max Mustermann', 21 ...