如何选择MySQL中的最后一个条目? 我尝试了以下声明:
SELECT *
FROM table name
ORDER BY id
SELECT id FROM lot_master WHERE `id auto increment` ORDER BY id decs LIMIT 1
我怎样才能做到这一点?
答案 0 :(得分:0)
select Name from shopping_cart where id<>(select max(id) from shopping_cart);