假如表SC中有一个名为cpno的字段 ,有若干重复的数据,想删除重复的数据。
delete from sc where cpno not in (select top(1) cpno from sc where cpno is not null);
很多教程逻辑比较复杂,理解起来比较费劲。
假如表SC中有一个名为cpno的字段 ,有若干重复的数据,想删除重复的数据。
delete from sc where cpno not in (select top(1) cpno from sc where cpno is not null);
很多教程逻辑比较复杂,理解起来比较费劲。