how to know if i reach the last row of table in sql code example
Example: how to get last row of table in sql
mysql> select *from getLastRecord ORDER BY id DESC LIMIT 1;
mysql> select *from getLastRecord ORDER BY id DESC LIMIT 1;