我有这个查询,它工作正常。
此项显示具有重复属性的项目,如金色护甲[ID:1]
SELECT * , SUBSTRING( CONVERT( attributes
USING latin1 )
FROM 18 ) AS 'Golden armor [ID: 1]'
FROM player_items
WHERE SUBSTRING( CONVERT( attributes
USING latin1 )
FROM 18 )
IN (
SELECT SUBSTRING( CONVERT( attributes
USING latin1 )
FROM 18 )
FROM player_items
WHERE CONVERT( attributes
USING latin1 ) LIKE '%Golden armor [ID: 1]%'
GROUP BY SUBSTRING( CONVERT( attributes
USING latin1 )
FROM 18 )
HAVING COUNT( * ) >1
)
但我希望编辑此项以删除具有重复ID的项目,而不是显示具有重复ID的项目
感谢。