上传文件至 /

This commit is contained in:
2025-11-14 13:25:18 +08:00
parent 3e2c103361
commit 94f265660d
5 changed files with 131 additions and 0 deletions

24
数据库5.2.md Normal file
View File

@@ -0,0 +1,24 @@
单表有条件查询
# 一、概述
1. 语法格式:```
```sql
SELECT [ALL|DISTINCT]
FROM
WHERE
```
2. 条件表达式中的运算符
1. 比较运算符:=、<、>、<=、>=、<>、!=、!<、!>
2. 范围运算符between、and、not between、and
3. 列表运算符in、not in
4. 字符匹配符like、not like
5. 空值is null、is not null
6. 逻辑运算符and、or、not
# 二、条件中表示数值范围
1. 比较运算符+逻辑运算符
2. 范围运算符(范围大推荐)
3. 列表运算符
# 三、条件中出现匹配条件
1. 字符匹配符
2. 通配符
1. \_ 单个下划线:单个任意字符
2. % 百分号0个或多个任意字符