如何合并两个where条件一样的sql语句

发布时间:2019-09-20 15:20:29

如何合并两个where条件一样的sql语句

推荐回答

where后加多个条件可以用and来连接。 如,student表中有如下数据: 现在要查,sex为男,age为20的那些数据,可用如下语句: select * from student where sex='男' and age=20;结果截图:
以上问题属网友观点,不代表本站立场,仅供参考!