By GoldParticle

2020-01-14 13:19:25 8 Comments

I am trying to write a program where I need to know the ID value of last entry dont in my database. I need to use that ID to generate a URL of some kind. What is the most efficient and easy method to find the last value of ID?

I have tried using len() or count but it won't be applicable if some records are deleted in between.


Related Questions

Sponsored Content

10 Answered Questions

[SOLVED] How to access environment variable values?

29 Answered Questions

[SOLVED] Finding the index of an item given a list containing it in Python

  • 2008-10-07 01:39:38
  • Eugene M
  • 3603765 View
  • 2957 Score
  • 29 Answer
  • Tags:   python list indexing

34 Answered Questions

[SOLVED] How do I sort a dictionary by value?

42 Answered Questions

[SOLVED] How do I merge two dictionaries in a single expression?

21 Answered Questions

[SOLVED] How do I list all files of a directory?

  • 2010-07-08 19:31:22
  • duhhunjonn
  • 3892416 View
  • 3474 Score
  • 21 Answer
  • Tags:   python directory

25 Answered Questions

[SOLVED] How can I safely create a nested directory?

38 Answered Questions

[SOLVED] How do I check whether a file exists without exceptions?

27 Answered Questions

[SOLVED] How do I check if a list is empty?

  • 2008-09-10 06:20:11
  • Ray Vega
  • 2624911 View
  • 3234 Score
  • 27 Answer
  • Tags:   python list

10 Answered Questions

[SOLVED] Improve INSERT-per-second performance of SQLite?

Sponsored Content