多字段关联同一张表

select 
*,
(select UserName from T_Users where Id=AssayUserId) as AssayUserName,
(select UserName from T_Users where Id=AnalyzeUserId) as AnalyzeUserName
from T_task 

 

posted @ 2021-12-20 23:01  望春风  阅读(140)  评论(0编辑  收藏  举报