这个语句怎么写关于 and 或者 or select * from table where a1=1 or a2=2 or a3=3 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 加上括号就行了:a1=1 and (a2=2 or a3=3) 可以这样写where (if1 and if2) or (if1 and if3) a1=1 and (a2=2 or a3=3) select * from table where a1=1 or a2=2 or a3=3 这种情况有时对有时错;最好用上面那种where if1 and (if2 or if3) select * from table where a1=1 and (a2=2 or a3=3)不过你写得也对呀select * from table where a1=1 and a2=2 or a3=3 SQL资料导入问题 新手用sql 2005的迷惑 数据库服务器的CPU经常100%,请问如何解决 一个数据库是否需要建表的问题 求复杂一点的SQL语句 请教一个关于列数的问题,谢谢 截取字符串 表名 sql server安装后服务器管理器不能启动,why? 关于sql查询统计相关问题 ===请问这句sql错在那里??? 求一个SQL语句~! 我的sql server服务器启动不了,能帮我解决吗?
a1=1 and (a2=2 or a3=3)
where (if1 and if2) or (if1 and if3)
这种情况有时对有时错;最好用上面那种
where if1 and (if2 or if3)
select * from table where a1=1 and a2=2 or a3=3