mysql中的where条件

2025-05-07 13:37:36
推荐回答(1个)
回答1:

mysql中的where如果有多个条件的话用and连接。

如,student表中有如下数据:

现在要查,sex为男,age为20的那些数据,可用如下语句:

select * from student where sex='男' and age=20;

结果截图: