SQL
janet796
这个作者很懒,什么都没留下…
展开
-
Mybatis中的动态SQL
1、动态插入2、动态更新3、批量更新/删除4、动态查询原创 2018-03-09 16:59:15 · 151 阅读 · 0 评论 -
MySQL中union和order by
1、如果直接用如下sql语句是会报错:Incorrect usage of UNION and ORDER BY。SELECT * FROM table WHERE status=0 ORDER BY status,starttimeUNIONSELECT * FROM table WHERE status=1 ORDER BY status,updatetime DESC因为union在没有括号...原创 2018-03-28 11:49:31 · 379 阅读 · 0 评论