select ? list.listname, list.createtime,listcount from dream_list as list , ? (select listid,count(listid) as listcount ?from dream_list_user ?group by listid ?order by count(listid) desc) ?as table1 ?where list.sysid=table1.listid and listcount>2 ?order by list.createtime desc ;?
详细解决方案
查询集锦的sql
热度:12 发布时间:2016-05-05 10:59:15.0
相关解决方案