哪位大哥能帮忙啊? select t1.* from t1 a where 产品编号 in (select 产品编号 from t1 where 产品名称=a.产品名称 and 规格=a.规格) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select 产品编号,产品名称,规格from 产品表 awhere exists (select 1 from 产品表 where 产品编号<>a.产品编号and 产品名称=a.产品名称and 规格=a.规格) select a.*from 产品表 a join (select 产品名称,规格 from 产品表 group by 产品名称,规格 having count(*)>1)b on (a.产品名称= b.产品名称 and a.规格=b.规格) 请教两表遍历组合插入第三表的SQL 修改聚集索引过程中对数据查询与更新的有多大影响? sql 创建表 能使用unsigned ??? 急~~请大家帮我解析下· 在mssql2000中如何实现像Access中的自动ID,让某个表的ID号自动递增 跨服务器数据更新问题!!! 求教数据库设计方案,是采用多表还是单表? 如何根据字段值关联不同的表?(急) 关于SQLServer的SQL语句返回值问题 sql loader中字符集转换问题? help me SQL Server中定义image类型的问题?
from 产品表 a
where exists (select 1 from 产品表 where 产品编号<>a.产品编号
and 产品名称=a.产品名称
and 规格=a.规格)
from 产品表 a join (select 产品名称,规格 from 产品表 group by 产品名称,规格 having count(*)>1)b on (a.产品名称= b.产品名称 and a.规格=b.规格)