0
SELECT
dept.deptname,details.UserName,
(select CONCAT(BrndName,' - ',ModName,' - ',Capacity) from details where Devname='PROCESSOR') as Processor,
(select CONCAT(BrndName,' - ',ModName,' - ',Capacity) from details where Devname='PROCESSOR') as Memory
FROM
dept
LEFT JOIN details ON dept.deptcode = details.DeptCode
您使用兩次別名'crevrtv' – Jens 2014-09-26 06:47:15
您爲什麼認爲你會得到那個錯誤? – Strawberry 2014-09-26 06:47:22