日期:2014-05-18 浏览次数:20486 次
ORDER BY CASE when @P_SORTEXPRESSION = 'COURSE_DESC' THEN COURSE_DESC,T.USER_GRADE, T.USER_GRADE_LEVEL, T.DIFFICULTY_LEVEL end, CASE when @P_SORTEXPRESSION = 'COURSE_DESC DESC' THEN COURSE_DESC DESC, T.USER_GRADE, T.USER_GRADE_LEVEL, T.DIFFICULTY_LEVEL END, CASE WHEN @P_SORTEXPRESSION = 'USER_GRADE' THEN USER_GRADE, T.COURSE_DESC, T.USER_GRADE_LEVEL, T.DIFFICULTY_LEVEL END, CASE WHEN @P_SORTEXPRESSION = 'USER_GRADE DESC' THEN USER_GRADE DESC, T.COURSE_DESC, T.USER_GRADE_LEVEL, T.DIFFICULTY_LEVEL END, CASE WHEN @P_SORTEXPRESSION = 'USER_GRADE_LEVEL' THEN USER_GRADE_LEVEL, T.COURSE_DESC, T.USER_GRADE, T.DIFFICULTY_LEVEL END, CASE WHEN @P_SORTEXPRESSION = 'USER_GRADE_LEVEL DESC' THEN USER_GRADE_LEVEL DESC, T.COURSE_DESC, T.USER_GRADE, T.DIFFICULTY_LEVEL END