sql delete删除表中的最后一条语句为:
delete from table_Name where Id like (select top 1 Id from table_Name order by Id desc)
思路为:查找倒序的第一个,即上面代码中的子sql语句select top 1 Id from table_Name order by Id desc
delete from table_Name where Id like (select top 1 Id from table_Name order by Id desc) 查找倒序的第一个,再删除就OK。
delete from table_Name where Id like (select top 1 Id from table_Name order by Id desc)
删除主键最大的