如何在SQL中將行合併到單行中?Oracle SQL:將行合併爲單行
例如:SELECT distinct studentID, studentName, MathGrade, SciGrade from vStudentGrade;
輸出:
StudentID studentName MathGrade SciGrade
1 Zed 89
1 Zed 98
所需的輸出:
StudentID studentName MatheGrade SciGrade
1 Zed 89 98
希望下面的鏈接將幫助你.. http://stackoverflow.com/search?q=merge+rows+in+one+row – 2012-02-09 06:37:15