我无法解决这个问题。如何使这个更新语句符合ACID?
Update Students Set Career = 'GRD' where Joined > '2012'
答案 0 :(得分:0)
如果执行了以下命令,它将仅更新实际需要将职业值更改为“GRD”的记录,如果该值已经是“GRD”,则它将不会执行任何操作。同样,如果下面的命令被多次执行,它将不会一次又一次地更新同一条记录:
Update Students Set Career = 'GRD' where Joined > 2012 and Career <> 'GRD'
答案 1 :(得分:-2)
它是连接列。 试试这个查询
Update Students Set Career = 'GRD'
where Cast(joined as date) > cast(01-Jan-2015 as date)
2012