设置 | 登录 | 注册

目前共有1篇帖子。

sql语句同表查询

1楼 巨大八爪鱼 2010-12-4 15:44
select 编号,所属主题帖 from 帖子 as sout where 编号=5 and ((select 允许搜索 from 帖子 as newt where newt.编号=sout.所属主题帖)=1 or sout.所属主题帖=0)

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张