你现在是sqlite
这个数据库不支持这个写法
==========
SELECT
classno AS 班级,
STUDENTNO AS 学号,
NAME AS 姓名,
SEX AS 性别,
MAX( CASE COURSE WHEN "English" THEN GRADE ELSE "" END ) AS "English",
MAX( CASE COURSE WHEN "Math" THEN GRADE ELSE "" END ) AS "Math",
MAX( CASE COURSE WHEN "French" THEN GRADE ELSE "" END ) AS "French",
MAX( CASE COURSE WHEN "CHemistry" THEN GRADE ELSE "" END ) AS "CHemistry",
MAX( CASE COURSE WHEN "Physics" THEN GRADE ELSE "" END ) AS "Physics"
FROM StSCOre
GROUP BY
classno, STUDENTNO,NAME, SEX