您应该在两个字段之间设置一个复合键。每行需要一个唯一的stone_id和upcharge_title。
至于找到现有重复项,请尝试以下操作:
select stone_id, upcharge_title, count(*)from your_tablegroup by stone_id, upcharge_titlehaving count(*) > 1

您应该在两个字段之间设置一个复合键。每行需要一个唯一的stone_id和upcharge_title。
至于找到现有重复项,请尝试以下操作:
select stone_id, upcharge_title, count(*)from your_tablegroup by stone_id, upcharge_titlehaving count(*) > 1