
sql
pengruikeji
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一段复合查询的sql语句备份 排序 group
select * from brands b join (select brand_id,count(*) as product_amount from products where id in (#{product_id_array.join(',')}) group by b原创 2011-07-27 15:48:22 · 1287 阅读 · 0 评论 -
一段复合查询的sql语句备份 排序 group
select * from brands b join (select brand_id,count(*) as product_amount from products where id in (#{product_id_array.join(',')}) group by brand_id order by count(*) desc) as bc where b.id = bc.brand_...原创 2011-07-27 15:51:32 · 124 阅读 · 0 评论