ubuntu 8.10 安装Oracle 10G 企业版综合指南

假设表里有两个日期类型的字段,其中一个为null, 要根据是否为null更新其中的一个,使用如下语句
->update table1 set case
->when col1 is null then col1
->when col2 is nul then col2
->end =curdate()
->where condition = ...
执行不成功,请指教错误。

作者: wjhbh   发布时间: 2011-06-04

假设表里有两个日期类型的字段,其中一个为null, 要根据是否为null更新其中的一个,使用如下语句
->update table1 set case
->when col1 is null then col1
->when col2 is nul then col2
->end =curdate()
->where condition = ...
执行不成功,请指教错误。

作者: wjhbh   发布时间: 2011-06-04