update Sf_Msg_Monthly set smm_Closed_Time=to_date('2011-12-30','yyyy-MM-dd') where smm_Monthlyid = 1
这样可以!!为什么这样就不行了
update Sf_Msg_Monthly set smm_Closed_Time=to_date('2011-12-30 11:54:30','yyyy-MM-dd hh24 :mm:ss') where smm_Monthlyid = 1
求解 求等待!!!
这样可以!!为什么这样就不行了
update Sf_Msg_Monthly set smm_Closed_Time=to_date('2011-12-30 11:54:30','yyyy-MM-dd hh24 :mm:ss') where smm_Monthlyid = 1
求解 求等待!!!
update Sf_Msg_Monthly set smm_Closed_Time=to_date('2011-12-30 11:54:30','yyyy-MM-dd hh24:mm:ss') where smm_Monthlyid = 1
和空格没有关系,格式问题 hh24:mi:ss
但是 分钟是mi ,你的mm 表示 有 月份有50多的,那肯定会报错。
SET smm_Closed_Time = to_date('2011-12-30 11:54:30','yyyy-MM-dd HH24:MI:SS')
WHERE smm_Monthlyid = 1;
注意下年月日格式yyyy-MM-dd:hh24:mi:ss