比较运算符
符号
| = 等于 <>或!= 不等于 > >= < <= |
|---|
not between…and …
| select * from exam where 列名 between…..and ….. |
|---|
in( )
| in( )显示为in(数据,数据) 什么或什么 |
|---|
like 模糊查询
| 通配符:%任意多个字符 任意单个字符 ‘张%’ select * from 表名 where 表名 like ‘张 ‘; |
|---|
is not null
逻辑运算符->连接条件表达式
| and 与 or 或 not 非 select from 表名 where 列名>数据 and 列名>数据; select from 表名 where not 列名>数据; and优先级更高 and用于两个列名 |
|---|
