wamper
(wamper)
金牌会员
 
资深会员
UID 23187
精华
0
积分 1025
帖子 1193
金钱 1025 喜悦币
威望 0
人脉 0
阅读权限 70
注册 2003-9-14 来自 北京
状态 离线
|
select t1.id,if(t1.id=t2.id2,if(t2.ifpub2=1,t2.ifpub2,0),t1.ifpub) as ifpub1 from t1 left join t2 on t1.id=t2.id2
where if(t1.id=t2.id2,if(t2.ifpub2=1,t2.ifpub2,0),t1.ifpub) =1
[ 本帖最后由 wamper 于 2008-6-25 09:42 AM 编辑 ]
|
|