lundi 1 décembre 2014

How to get last inserted record from core database?

I am trying to fetch last inserted object from core database. But i did't find way to fetch last inserted object from database. Currently i am fetching all records from database in array and using last object of array for last inserted object. But i want to fetch only single object from database.


Is there anyway to find a last single record from database.?


Thanks and regards Sarabjit Singh




Aucun commentaire:

Enregistrer un commentaire