select *,tasktype=(select taskname from task_type where task.type=task_type.ID),
       task_prioty=(select priotyname from task_prioty
                where task.prioty=task_prioty.ID)
from task
--------------------------
task与task_prioty,task_type的关心要1:1
如果是1:n,就用inner join