get the id of the last record from a table

can anyone tell me how can i get the last id(primary key) of the table

i don't know if i understand correctly what you want to do, but you
could just type:

oh forgot to ask for id:

If you want only the id of the last entered data then try this,
This will return the maximum id which will be anyways the last one.

Ishara Gunathilake wrote:

thanx,i did it,it was success