你的字段是date型的?
如果是的话,是显示的问题
如果是字符型的
update tbname set dtcol=to_char(to_date(dtcol,'yyyy-mm-dd hh24:mi:ss'),'yyyy.mm.dd hh24:mi')
where instr(dtcol,'-')>0;
如果是的话,是显示的问题
如果是字符型的
update tbname set dtcol=to_char(to_date(dtcol,'yyyy-mm-dd hh24:mi:ss'),'yyyy.mm.dd hh24:mi')
where instr(dtcol,'-')>0;
如果要在sql/plus中改变日期的默认显示格式,可以执行
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';