原创 SQL 刪除非標識規範的表,讓主鍵按順序排列

if(@type=‘Delete_62’) begin if exists(select 0 from IR_RoomSpan where @RoomSpanID = (select top 1 RoomSpanID from I