Cómo obtener la última fila de mesa en SQL
mysql> select *from getLastRecord ORDER BY id DESC LIMIT 1;
Powerful Puffin
mysql> select *from getLastRecord ORDER BY id DESC LIMIT 1;
#Where the the column name is "ID" and table name is "tablename" and ID naming is increasing numerical value.
SELECT *
FROM tablename
WHERE ID = (
SELECT MAX(ID)
FROM Table)
select * from table where ID = (SELECT @@IDENTITY)