目的:需要将时间更改为 9/13/2016 9:00:00 AM accident_time为时间格式列 update t_clm_case set accident_time = '9/13/2016 9:00:00' where case_id = 2709;//报错 update t_clm_case set accident_time = to_date('9/13/2016 9:00:00','MM/dd/yyyy hh:mi:ss') where case_id = 2709; //另外 因为AM,12小时制,所以使用hh:mi:ss 并且插入的值不需要写AM 若24制 hh24:mi:ss
oracle update时间格式值
猜你喜欢
转载自ztao2333.iteye.com/blog/2327163
今日推荐
周排行