这个SQL语句如何用thinkPHP来写

浏览:402 发布日期:2017/06/12 分类:求助交流
select JBDM,COUNT(*) FROM(
select JBDM from think_table  union all 
select JBDM1 from think_table  union all 
select JBDM2 from think_table  ) AS B
Where JBDM <> ''
GROUP BY JBDM
ORDER BY count(*) desc
LIMIT 10
最佳答案
评论( 相关
后面还有条评论,点击查看>>