今天爱分享给大家带来DQL语言-条件查询【二】,希望能够帮助到各位。
一、运算符
- 条件运算符:>、>=、<、<=、=、<=>、!=、<>
- 逻辑运算符:and、or、not
- 模糊运算符:
- like:%任意多个字符、_任意单个字符、如果有特殊字符,需要使用escape转义
- between and
- not between and
- in
- is null
- is not null
二、演示
--查询工资>3000的员工信息 select * from emp where sal > 3000;
原文链接:https://blog.itblood.com/116.html,转载请注明出处。