oracle 修改某字段,判斷是否爲空,若是爲空賦默認值

update table_complaint t set t.cptdatetime = nvl2(t.cptdatetime, '', to_char(to_date(t.cptdatetime, 'yyyy-mm-dd hh24:mi:ss') - 2))html where t.cpintid = 'djdjdj';post 轉載於:https://www.cnblogs.com/lwy11
相關文章
相關標籤/搜索