select max(id) from test limit #最大值方式 select count(*) from test #常見的 select count(1) from test # 網友說的
網上有人對三個查詢效率說法不一,有時間去測試一下,你們能夠討論一下sql