这样的SQL通不过,该怎么写?
使用ODBC访问EXCEL,现在EXCEL中有表student
学号 成绩
001 60
002 80
003 80
004 90
005 100
现在想得出学号和排名结果:
001 60 5
002 80 3
003 80 3
004 90 2
005 100 1
"select 学号,(select count(*) "+
"from table student where 成绩<student.成绩) from table student";
这样写,结果程序说我语法错误
是不是因为SQL不标准?应该怎样写?