database is locked SQLITE3
I am trying to add value to my DB, but I got error. Here is my code: import sqlite3 curs = sqlite3.connect('Tadawul.db') hello = "('hello')" curs.execute("""INSERT INTO stock_price (close) VALUES """+ hello +""";""") I got this error: sqlite3.OperationalError: database is locked How can I fix it? I try this code nothing changes: curs.execute("""INSERT INTO stock_price (close) VALUES (?)""",(hello, ))
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.