![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
十步行
种一棵树最好的时间是十年前,其次是现在。
I hear and I forget. I see and I remember. I do and I understand.
展开
-
MySQL 语句中执行优先级——and比or高
MySQL中,AND的执行优先级高于OR。也就是说,在没有小括号()的干预下,总是先执行AND语句,再执行OR语句。例:select * from table where 条件1 AND 条件2OR条件3等价于select * from table where ( 条件1 AND 条件2 ) OR 条件3select * from table原创 2017-04-20 13:33:03 · 29567 阅读 · 1 评论 -
@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 · 3452 阅读 · 0 评论