在Access无法使用SQL语句中的case when语句,但可以通过Switch函数实现
例如:
Switch(成绩<60,"不及格",成绩 Between 61 And 74,"中",成绩 Between 75 And 88,"良",成绩 Between 88 And 100,"优") AS 成绩等级
可以实现对成绩的值进行多分支条件判断结构
在Access无法使用SQL语句中的case when语句,但可以通过Switch函数实现
例如:
Switch(成绩<60,"不及格",成绩 Between 61 And 74,"中",成绩 Between 75 And 88,"良",成绩 Between 88 And 100,"优") AS 成绩等级
可以实现对成绩的值进行多分支条件判断结构
转载于:https://www.cnblogs.com/samsonleung/archive/2009/06/03/1495461.html