mysql条件查询

一、语法
select 查询列表
from 表名
where 筛选条件

二、筛选条件的分类
1、简单条件运算符

<、 =、>、 <>、 !=、 >=、 <=、 <=>安全等于
2、逻辑运算符
&& and
|| or
! not
3、模糊查询
like:一般搭配通配符使用,可以判断字符型或数值型
通配符:%任意多个字符,_任意单个字符

between and
in
is null /is not null:用于判断null值

普通类型的值null值可读性
is null×
<=>×
posted @ 2021-07-21 13:51  JamieChyi  阅读(18)  评论(0)    收藏  举报  来源