mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-24 18:23:43 +00:00
Update SQL 语法.md
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
359581e1a3
commit
97ed6381d7
+2
-2
@@ -239,7 +239,7 @@ WHERE col IS NULL;
|
||||
|
||||
- **\_** 匹配 ==1 个任意字符;
|
||||
|
||||
- **[ ]** 可以匹配集合内的字符,例如 [ab] 将匹配字符 a 或者 b。用脱字符 ^ 可以对其进行否定,也就是不匹配集合内的字符。
|
||||
- **[ ]** 可以匹配集合内的字符,例如 [ab] 将匹配字符 a 或者 b。用脱字符 ^ 可以对其进行否定,也就是不匹配集合内的字符。需要注意的是,只有 SQL Server 等少数 DBMS 支持 [ ] 通配符,MySQL 不支持,需要改用 REGEXP。
|
||||
|
||||
使用 Like 来进行通配符匹配。
|
||||
|
||||
@@ -317,7 +317,7 @@ WHERE SOUNDEX(col1) = SOUNDEX('apple')
|
||||
|
||||
|
||||
- 日期格式:YYYY-MM-DD
|
||||
- 时间格式:HH:\<zero-width space\>MM:SS
|
||||
- 时间格式:HH:MM:SS
|
||||
|
||||
|函 数 | 说 明|
|
||||
| :---: | :---: |
|
||||
|
||||
Reference in New Issue
Block a user