找出最大id
1) SELECT max(id) as maxid FROM `flash_flash`
2) SELECT id FROM `flash_flash` order by id desc limit 1
3) SELECT max(id) as maxid FROM ( SELECT id FROM `flash_flash` ) as f

Comments are closed.

Post Navigation