我有两张桌子:
Tasks[id_task,task_title,author,id_project]
SubTasks[id_subtask,subtask_title,author,id_task]
我使用这个查询来返回数据:
Select PS.task_title as subtask_category, PS.id_task, PS.id_project, P.*
From SubTasks P inner join Tasks PS
on P.id_task=PS.id_task
where PS.id_project = 1
order by PS.id_task desc
问题是结果表包含重复的 id_task 列,我该如何解决?