How to select last record of MySql table with last or other command
For example:
select last registro from tabela where coluna =23;
I've tried this code but it did not work.
How to select last record of MySql table with last or other command
For example:
select last registro from tabela where coluna =23;
I've tried this code but it did not work.
SELECT registro FROM tabela WHERE coluna = 23 ORDER BY id DESC limit 1;