Subject | last record from a table |
---|---|
Author | Sergio H. Gonzalez |
Post date | 2012-01-27T19:47:55Z |
(Firebird 2.5)
Hello! this is probably an old question, but didn't find nothing on the
net...
Here's a sample table: MyTable (has two fields) = ID: integer & MyDate: Date
Is this the best (fastest) way to get the LAST inserted record from a table?
select MyDate from MyTable where id = (select max(id) from MyTable)
Thanks!!
[Non-text portions of this message have been removed]
Hello! this is probably an old question, but didn't find nothing on the
net...
Here's a sample table: MyTable (has two fields) = ID: integer & MyDate: Date
Is this the best (fastest) way to get the LAST inserted record from a table?
select MyDate from MyTable where id = (select max(id) from MyTable)
Thanks!!
[Non-text portions of this message have been removed]