This is simplified version of my code
from cs50 import SQL
open("File_Name", "w").close()
db = SQL("sqlite:///File_Name")
id = 2
filename="hola"
db.execute("insert into File_Name(id,File_name)values(?,?)",id,filename)
Terminal
~/login/ $ python hi.py Traceback (most recent call last): File "/home/ubuntu/login/hi.py", line 7, in db.execute("insert into File_Name(id,File_name)values(?,?)",id,filename) File "/usr/local/lib/python3.9/site-packages/cs50/sql.py", line 52, in execute return self._execute(statement, connection) File "/usr/local/lib/python3.9/site-packages/cs50/sql.py", line 71, in _execute raise RuntimeError(exc.orig) from None RuntimeError: no such table: File_Name
Please help me with this issue
open()
is to create the database, then of course there is no table.open()
is used to open the file with table@inderveer__singhofficial
this is my telegram username you can add me and then i will give you access to ide and then you can help me.