0
How to compare... Assume an id given by user and an id stored in a table in python sqlite3
3 Answers
+ 2
What are you trying to compare? If you are trying to search for a specific ID in your database you can use
SELECT * FROM TABLE_NAME WHERE TABLE_NAME.ID = 'ID YOU ARE SEARCHING FOR'
+ 2
In Python just check if the resulting list is longer than length 0
+ 1
But this will print the statement.... I don't need to print that only I have to check... Only..