我試圖選擇標題的平均評分使用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
,但我想這是行不通的。請