mysql中的where条件
这种情况下的 where条件怎么写
select
tid1,tid100022,tid100024,tid100026,c26 , c100148 , c100152 , c100153 , c100154 , c100155 , c100156 , c100157 , c100169 , c100182
from t1,t100022,t100026
where c100149 = t1 and c100150 = t100026 and c100151 = t100024
where中的 and 是这样用的吗? 麻烦大家告诉一下 这3个条件中应该如何去写,是用and还是用什么。
mysql中的where如果有多个条件的话用and连接。
如,student表中有如下数据:
现在要查,sex为男,age为20的那些数据,可用如下语句:
select * from student where sex='男' and age=20;
结果截图:
下一篇:mysql具体有什么用
上一篇:mysql怎么修改root密码
热门标签: