How can I go to the last record of database? I've been having problems after creating a new record, and trying to display it, but I don't know what primary ID it's given, so I dont know how to go the last record. Thanks for the help.
Go to the last record
Collapse
X
-
if you want to find the last record in a table (with PK = xx) you can to try with:Originally posted by LuiePLHow can I go to the last record of database? I've been having problems after creating a new record, and trying to display it, but I don't know what primary ID it's given, so I dont know how to go the last record. Thanks for the help.
select * from tabv where xx = (select max(xx) from tab)
Comment