I'm quite a beginner to SQL so I'm probably missing something import, but I'll ask anyway:
I'm creating a login program using an SQL database in python using SQLite3. When trying to check if a security question is correct I use these lines of code:
py_Username = input()
Answer1 = input()
if Answer1 == Cursor.execute("SELECT Security_Question1 FROM UserInfo WHERE Username = " + py_Username):
When doing this I get this error and don't know why...
Traceback (most recent call last):
if Answer1 == Cursor.execute("SELECT Security_Question1 FROM UserInfo WHERE Username = " + py_Username):
sqlite3.OperationalError: no such column: jake9
Please Help! Thanks.