mysql中的where如果有多个条件的话用and连接。
如,student表中有如下数据:
现在要查,sex为男,age为20的那些数据,可用如下语句:
select * from student where sex='男' and age=20;
结果截图: