这是替代方法 先使用着
select * from ofgroup where groupId in (select groupId from ofgroup where uid =‘".$_GET[‘value‘]."‘ and useraid=‘0‘)
groupid定位死 就显示一个 与它对应的也是相同的
每个人的清况不一样 sql语句也大有区别
sql 语句 查询两个字段都相同的方法
原文:http://www.cnblogs.com/hellowzd/p/4217944.html