我试图选择标题的平均评分使用1表我试过的情况下,当它不工作时,当我使用CASE当它返回所有的平均值,但我需要它只是从用户这就是选择返回选择 ID USERNAME TITLE RATING RATED_BY 1 tommy Bigbear 5 oscar
2 tommy Bigbear 2 dillan
3 tommy HardLife
我想通过使用set和where来更新一列的值。 我做了查询像 update Students set Studentid =case
when Studentid=1 then class= 10
when studentid = 3 then class=9
when studentid=2 and studentid =4 then class=8
End
,但我想这是行不通的。请