第一条: select * from 表名 limit 1;(默认是升序排序,取第一条)最后一条:select * from表名 order by 表_id desc limit 1(降序排序取第一条)