select max(id) from test limit #最大值方式 select count(*) from test #常见的 select count(1) from test # 网友说的
网上有人对三个查询效率说法不一,有时间去测试一下,你们能够讨论一下sql