diff --git a/Jan/dbtest_sql.py b/Jan/dbtest_sql.py new file mode 100644 index 0000000..557fb50 --- /dev/null +++ b/Jan/dbtest_sql.py @@ -0,0 +1,14 @@ +import sqlite3 + +con = sqlite3.connect("../test1.db") +c = con.cursor() + +sql = """select f.text, a.text +from frage f +join antwort a on f.id = a.frage_id""" + +c.execute(sql) + +select = c.fetchall() + +c.close()