Python Forum
[Tkinter] sqlite3 check last record
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] sqlite3 check last record
#1
I have many records in table and I have the field enabled that can be either yes or no. I am making select statement that gets all records with enabled being no. How to check only the last record that has the value for enabled equals no. It might not be the last record in the table.

My select:

c.execute("Select * from temp where enabled ='no'")
How to make this find the last record available in the table.

Thanks.
Reply
#2
This answer (on another forum) will do the trick: https://stackoverflow.com/a/24495092
rwahdan likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to save record Rehan11 2 2,731 Dec-28-2018, 09:07 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020