#!/usr/bin/env python3 import sys import sqlite3 def main(args): db =…
- User
#!/usr/bin/env python3
import sys import sqlite3
def main(args): db = sqlite3.connect("LOTTO-00.db") cur = db.cursor() x = 1
codecur.execute(""" CREATE TABLE LOS_N_SORT( id INTEGER PRIMARY KEY AUTOINCREMENT, LOS_ID INTEGER, LN1 INTEGER, LN2 INTEGER, lN3 INTEGER, LN4 INTEGER, LN5 INTEGER, LN6 INTEGERr, LOS_N TEXT) """) LOS_ID = 1 LN1 = 22 LN2 = 45 LN3 = 10 LN4 = 7 LN5 = 25 LN6 = 34 LOS_N = "1, 22, 45, 10, 7, 25, 34" cur.execute("INSERT INTo LOS_N_SORT VALUES (id, LOS_ID, LN1, LN2, LN3, LN4, LN5, LN6, LOS_N)") db.commit() db.close() print("TEST") return 0if name == 'main': sys.exit(main(sys.argv[1:]))
gdy uruchamiam ten program wyskakuje błąd: sqlite3.OperationalError: no such column: id jak przerobić ten program żeby działał
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.