综合查询?可以做成视图阿,比如CREATE VIEW logsDetails (pdutyId, dutyName, logs_id, logs_day, logs_detail, logs_private, uid, cdutyId, dept_id, userinfo_id, user_name) AS
SELECT a.dutyId, a.dutyName, b.logs_id, b.logs_day, b.logs_detail, b.logs_private, b.uid, b.dutyId, c.dept_id, c.userinfo_id, c.user_name
FROM dutylist a, worklogs b, userinfo c 
WHERE a.dutyId=b.dutyId and b.uid=c.userinfo_id
go