如何在数据库中查询空值?
1.在ORACLE数据库中有大量的记录,有的字段的值是空值,如何通过查询语句找到某字段为空的记录?
2.给某时间字段赋值当前时间如何做?
select * from TableName where fieldName is null
update TableName set fieldName=(to_char(sysdate,'yyyy-mm-dd')) where ID=....
如何在数据库中查询空值?
1.在ORACLE数据库中有大量的记录,有的字段的值是空值,如何通过查询语句找到某字段为空的记录?
2.给某时间字段赋值当前时间如何做?
select * from TableName where fieldName is null
update TableName set fieldName=(to_char(sysdate,'yyyy-mm-dd')) where ID=....