语句:
delete from 表名 where 主键列 not in(select top (select count(*)-1 from 表名) 主键列 from 表名)
例如:
T_Student是表名
student_id 是主键列
delete from T_Student where student_id not in(
select top (select count(*)-1 from T_Student) student_id from T_Student)
温馨提示:
喜欢灰碟分享的小伙伴不要忘记关注噢~这样子,想找我时就不会迷路啦*
联系方式:
Vx+:LHD7575