日期:2014-05-18 浏览次数:20411 次
SELECT COUNT(*) FROM A WHERE A.GROUP_ID = 1 AND A.CITY_ID = 1 AND A.UID IN (SELECT UID FROM C)
------解决方案--------------------
select count(*) from c,a where c.uid=a.uid and a.city_id =1 and a.group_id = 1 select count(*) from c where uid in (select uid from a where city_id =1 and group_id = 1)
------解决方案--------------------
select count(*) from c where uid in (select uid from a where group_id='1' and city_id='1')