日期:2014-05-17 浏览次数:20522 次
;with test as ( select id,scores,case when scores<=60 then 0 else (score-60)/10 end grade from score ) update score set score.grade=test.grade from score inner join test on score.id=test.id and score.scores=test.scroes
2005以后: SQL code ? 1234567 ;with test as ( select id,scores,case when scores<=60 then 0 else (score-60)/10 end grade from score ) update score set score.grade=test.grade from score in……