谁知道SQL中怎么查询某一列数据都相同的行都给找出来,比如:A列中第1行和第2行数据都是100,怎么找出这些行?
还有一个问题,那里有繁体字语言包下载吗?

解决方案 »

  1.   

    select distinct * into #t from 表truncate table 表insert into 表 select * fro #t
      

  2.   

    繁体字语言包,系统安装盘中有,在控制面版中区域选项
    select a from table where a = b
      

  3.   

    同意用Group by 
    select AssetName,XXXX from T_asset Group by AssetName,xxxx
      

  4.   

    你们误解我的意思了,我的服务器SQL数据库中有好多数据都是同样的,我想把多余的数据删除掉,有的两三行都是一样的,怎么把那样多出来的行删除掉呢,多余两条的数据都只保留一行!
      

  5.   

    删除重复的,只留一条:alter table 表 add  newfield int identity(1,1)delete 表
    where newfield not in(
     select min(newfield) from 表 group by 除newfield外的所有字段
                         )alter table 表 drop column newfield或:select distinct * into #temp from 表
    truncate table 表
    insert 表 select * from #temp
    drop table #temp