update 表 set 字段=to_char(to_date(字段,'YYYY-MM-DD'),'YYYY-MM-DD')
就好了

解决方案 »

  1.   

    ORA-01830: date format picture ends before converting entire input string. 
     
    Cause: A valid date format picture included extra data.  The first part of the  
    format picture was converted into a valid date, but the remaining data was not  
    required. 
     
    Action: Check the specifications for date format pictures and correct the  
    statement.检查字段的值,看来不只是2014-4-1这样的格式,部分还带了时间吧
      

  2.   

    LZ,你得先确定字段内容是不是都是有效的,如果你不确定,建议你逐行 用 tochar,todate 这样的函数更新,那些更新不了的,要手工调整的。