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
求解  求等待!!!

解决方案 »

  1.   

    注意下年月日格式yyyy-MM-dd:hh24:mi:ssupdate Sf_Msg_Monthly set smm_Closed_Time=to_date('2011-12-30 11:54:30','yyyy-MM-dd:hh24:mi:ss') where smm_Monthlyid = 1
      

  2.   

    yyyy-MM-dd hh24 :mi:ss
      

  3.   

    lz没看仔细,hh24后面多了一个空格,去掉空格就好了
    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
      

  4.   

    大意了,没看到hh24:后面是用mm
      

  5.   


    和空格没有关系,格式问题 hh24:mi:ss
      

  6.   

    yyyy-MM-dd hh24 :mm:ss  oracle并不区分大小写,  
    但是 分钟是mi  ,你的mm  表示 有 月份有50多的,那肯定会报错。
      

  7.   

    SQL语句的问题,请按下面的代码来修改(看仔细点)UPDATE Sf_Msg_Monthly 
    SET smm_Closed_Time = to_date('2011-12-30 11:54:30','yyyy-MM-dd HH24:MI:SS') 
    WHERE smm_Monthlyid = 1;
      

  8.   

    时间格式错了!
    注意下年月日格式yyyy-MM-dd:hh24:mi:ss
      

  9.   

    也可以  update Sf_Msg_Monthly set smm_Closed_Time=to_char('2011-12-30 11:54:30','yyyy-MM-dd hh24:mi:ss') where smm_Monthlyid = 1