update t set t.a = t.a + t.b;

上面这个sql,如果a的 值为 1,b的值是 null,执行上的sql后,a的值会变为空。

oracle的NULL值处处处有坑,需要随时注意啊。

更多推荐