MySQL
lijing198962
这个作者很懒,什么都没留下…
展开
-
MySQL order by case when 排序
对竞价单查询两个状态的列表,进行排序, 然后在第一个状态时按照gmt_create创建时间降序在第二个状态按照开始时间start_time升序 SELECT * from auction where auction_status in (2,3) order by auction_status desc, case when auction_status=3 then原创 2016-07-14 20:41:04 · 9784 阅读 · 3 评论 -
利用mybatis 执行mysql是遇到的bug
params.put("type", new Integer(0)); 当mybatis中取出type的时候type为“”不知道为什么原创 2016-08-16 18:39:13 · 414 阅读 · 0 评论