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
评论(0)