0

How to compare... Assume an id given by user and an id stored in a table in python sqlite3

30th Jul 2017, 6:24 PM
Tanmay Sharma
Tanmay Sharma - avatar
3 odpowiedzi
+ 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'
30th Jul 2017, 6:39 PM
S C
+ 2
In Python just check if the resulting list is longer than length 0
31st Jul 2017, 1:52 AM
S C
+ 1
But this will print the statement.... I don't need to print that only I have to check... Only..
31st Jul 2017, 1:40 AM
Tanmay Sharma
Tanmay Sharma - avatar