PHPmyadmin 查询就没反应了怎么办?感觉是数据太多了,这个where in 语句不好使,有没有好的办法?用下面语句倒是能查出来,但是感觉结果不对,返回的结果条数太少了。
select * from pre_common_member,0_common_member_count_del where pre_common_member.uid=0_common_member_count_del.uid
把in 改为exists 试下 如果还不可以的话 建议把*改成需要的字段select *
from 0_pre_common_member
where exists(select uid from 0_common_member_count_del where 0_common_member_count_del.uid=0_pre_common_member.uid )
select uid
from 0_pre_common_member
where exists(select uid from 0_common_member_count_del where 0_common_member_count_del.uid=0_pre_common_member.uid )