有的欄位重覆,有的欄位不重覆,想要根據某個欄位去重,採用如下方法可行 ...
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
有的欄位重覆,有的欄位不重覆,想要根據某個欄位去重,採用如下方法可行 ...
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