sql 语句 查询两个字段都相同的方法

这是替代方法 先使用着

 

select * from ofgroup where groupId in (select groupId from ofgroup where  uid ='".$_GET['value']."' and useraid='0')

 

 

groupid定位死 就显示一个 与它对应的也是相同的

 

 

每个人的清况不一样 sql语句也大有区别

posted @ 2015-01-12 11:14  fleam  阅读(964)  评论(0编辑  收藏  举报