测试常用sql语句----初级
1.删除重复,保留一条groupID最小那一天
delete * from [Metadata_ForGZBB].[dbo].[Group] where groupID<>(select MIN(groupID) from [Metadata_ForGZBB].[dbo].[Group] a where a.groupName=’S送水泵房总站’) and groupName=’S送水泵房总站’
1.删除重复,保留一条groupID最小那一天
delete * from [Metadata_ForGZBB].[dbo].[Group] where groupID<>(select MIN(groupID) from [Metadata_ForGZBB].[dbo].[Group] a where a.groupName=’S送水泵房总站’) and groupName=’S送水泵房总站’