Oracle 日期时间

时间:2014-07-14 23:39:52   收藏:0   阅读:219
select to_char(sysdate,‘yyyy-mm-dd hh24:mi:ss‘) from goods t
insert into goods (id,createdate) values (‘232‘,to_date(‘2014-05-14 10:05:33‘,‘yyyy-mm-dd hh24:mi:ss‘))

 

实体类get方法注解

@Temporal(TemporalType.DATE)
如果要向数据库插入时分秒 需要TIMESTAMP

Oracle 日期时间,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!