取数问题排序问题
我想实现按照ID在MYSQL 里取第大的数据(ID是自动递增数据),以下语法是错误的
SELECT zhifufangshi from ERP_zijinshouzhi LIMIT 0,1 ORDER BY id
limit关键词应该放到order by之后
SELECT zhifufangshi from ERP_zijinshouzhi ORDER BY id LIMIT 0,1