日常问题及解决办法
十步行
种一棵树最好的时间是十年前,其次是现在。
I hear and I forget. I see and I remember. I do and I understand.
展开
-
oracle 按日期条件查询 to_date
oracle数据库按日期条件查询需要用到to_date()函数进行格式转换。 语法:to_date('date', 'format'); 以‘2017-02-06 15:02:00’为例: to_date('2017-02-06 15:02:00', 'yyyy-MM-dd hh24:mi:ss').原创 2017-02-06 15:16:34 · 9340 阅读 · 0 评论 -
@uniqueConstraints无法创建索引
一、问题: 通过注解@Table(name = "monitor_edge_daily", uniqueConstraints = {@UniqueConstraint(columnNames={"station_id","report_date"})})无法在数据库创建索引。 代码如下: package test.domain; import javax.persistenc原创 2018-01-11 15:16:04 · 3451 阅读 · 0 评论