登 录
当我们有时候要更新 数据库中 同一个字段 根据不同情况更新不同的值,可以用
update Table set field = (case XX when XXXX then XXX
when xxxx then xxxxxx
else xxxx end)
抱歉!评论已关闭.