SQL查询表的第一条数据和最后一条数据 方法一: 使用TOP SELECT TOP 1 * FROM user; SELECT TOP 1 * FROM user order by id desc; ...