oracle timestamp与字符串转换

来源:互联网 发布:php面试常用函数 编辑:程序博客网 时间:2024/05/29 03:15

字符串转timestamp:update tb_a t set t.upd_timestamp=to_timestamp('2012-12-12 12:12:12.0','yyyy-mm-dd hh24:mi:ss.ff')  where t.id='1'

timestamp转字符串:select to_char(t.upd_timestamp,'yyyy-mm-dd HH24:mi:ss:ff') from tb_a t

原文链接:http://www.2cto.com/database/201303/192476.html

0 0