怎么在sql中查找多个字段数据相同答:from (select 1 as c1,2 c2 from dual union all select 1,3 c2 from dual)group by c1 那你的问题可以这样:select id,序列号,名称,位置,wmsys.wm_concat(端口)from 表 group by id,序列号,名称,位置 这样就可以了,wmsys.wm_concat这个是类似字符串聚合函数的东东,一个缺点是重复记录不能...
SQL 两列重复查询答:create table test([列表1] varchar(10),[列表2] varchar(10))insert into test select '1','A'union select '1','B'union select '2','A'union select '2',nullunion select '3','A'union select '3',NULLunion select '4','A'union select '4',NULLunion select '5',NULLunion...