mysqli - querying the last inserted data in sql with huge data -
i have profile table object id primary. using script import lacks of users profile table. convenience tracking object id range getting inserted in table. problem data gets inserted in random manner , not able track last object id inserted. have tried
select * managed_profile order objectid desc limit 1,1;
the issue is giving last data inserted.
please me in this.
maybe add column timestamp , use in sql order time?