首页 > 技术文章 > mysql 运算符 或or、并且and

ZhaoBa 2021-04-25 19:13 原文

查询性别女,并且 年龄65的学生记录

select * from stu where gender='female' and  age = "65";

查询学号是S_1001或者名字为liSi的记录。

select * from stu where sid = 'S_1001' or  age = "65";

推荐阅读