22,300
社区成员




select * from tb t where exists (select 1 from tb where 规格=t.规格 and 分类=t.分类 and 名字<>t.名字 and (名字 like '%'+t.名字+'%' or t.名字 like '%'+名字+'%'))
SELECT * FROM TB T
WHERE EXISTS(
SELECT 1 FROM TB WHERE 商品规格=T.商品规格 AND 商品分类=T.商品分类
AND (商品名字 LIKE '%'+T.商品名字+'%' OR T.商品名字 LIKE '%'+商品名字+'%'))
select * from tb t where exists (select 1 from tb where 规格=t.规格 and 分类=t.分类 and 名字<>t.名字)