|
楼主 |
发表于 2017-4-21 14:26:31
|
显示全部楼层
执行了一下代码:但是查不出数据。 SELECT Basic_childproject.ID AS Basic_childproject,
Basic_childproject.COMPLETENODE AS CompleteNode,
Basic_childproject.CREATEDATE AS CreateDate,
Basic_childproject.CREATEUSER AS CreateUser,
Basic_childproject.MODIFYDATE AS ModifyDate,
Basic_childproject.MODIFYUSER AS ModifyUser,
Basic_totalproject.PROJECTYEAR AS ProjectYear,
Basic_totalproject.THEBUDGET AS TheBudget,
Basic_totalproject.TOTALBUDGET AS TotalBudget,
Basic_childproject.CHILDPROJECTNAME AS childprojectname,
Basic_totalproject.TOTALPROJECTNAME AS totalprojectname
FROM basic_childproject Basic_childproject
JOIN basic_totalproject Basic_totalproject ON Basic_childproject.TOTALPROJECTID = Basic_totalproject.ID
JOIN basic_employee Basic_employee ON Basic_childproject.PROJECTLEADERID = Basic_employee.ID
JOIN basic_employee Basic_employee_3 ON Basic_childproject.OPERATIONALTASKFORCEID = Basic_employee_3.ID
JOIN basic_employee Basic_employee_4 ON Basic_childproject.HEADQUARTERSPARTYACONTROLPMID = Basic_employee_4.ID
JOIN basic_employee Basic_employee_5 ON Basic_childproject.HEADQUARTERSPARTYBCONTROLPMID = Basic_employee_5.ID
|
|