我得到的只是罰款查詢:GROUP_CONCAT與加列
SELECT Course, Period, Room, Location, TeacherId, GROUP_CONCAT(StudentId) as Students
FROM cursosv2
GROUP BY Course, Period, Room, Location, TeacherID;
我想(也許是太基本)是生成的查詢有一個新的列,例如新列一個與加盟值期間+房間+'最終'。但我不斷收到例外。不知道真正的原因。
什麼我想...
SELECT Course, Period, Room, Period+' '+Room+' Final' as test, Location, TeacherId, GROUP_CONCAT(StudentId) as Students
FROM cursosv2
GROUP BY Course, Period, Room, Location, TeacherID;
感謝。
謝謝,好像MySQL有點特別... –