【发布时间】:2012-03-04 12:28:19
【问题描述】:
我想得到 10 兰特的结果,image !=''、uid 分组,这些uid 与select uid from user_table where type='1' 相同。但我的查询只返回 2 个结果。问题出在哪里?
select * from article_table where image!=''
order by rand()
group by uid
in (select uid from user_table where type='1')
limit 10
【问题讨论】: