首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle timestamp与字符串变换

2013-03-06 
oracle timestamp与字符串转换字符串转timestamp:update tb_a t set t.upd_timestampto_timestamp(2012-

oracle timestamp与字符串转换

字符串转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

热点排行