第一条: select * from 表名 limit 1;
最后一条:select * from表名 order by 表_id desc limit 1
最后一条:select * from表名 order by 表_id desc limit 1
mysql中如何查询表的第一条和最后一条记录
最新推荐文章于 2024-07-18 04:03:07 发布
第一条: select * from 表名 limit 1;
最后一条:select * from表名 order by 表_id desc limit 1
最后一条:select * from表名 order by 表_id desc limit 1