MySql 部分字段去重
程序员文章站
2022-07-02 13:19:32
有的字段重复,有的字段不重复,想要根据某个字段去重,采用如下方法可行 ......
select * from personal_question_answer where answer_id in ( select min(answer_id) from personal_question_answer where family_member_id='csaads16asadafds156aa' group by question_code ) order by question_code