Files
duyl328.github.io/docs/notes/MySql/11改.md
T
2025-01-20 10:21:45 +08:00

21 lines
431 B
Markdown

---
date: 2025-01-19
tags:
- Notes
- MySql
lastUpdated: 2025-01-20T10:10:00
---
语法:
```sql
Update 表名 set 字段名1 = 值1 ,字段名2 = 值2 ,。。。Where 条件
```
注意:没有条件,表中数据全部更新
更改表中数据:
![img.png](..%2F..%2Fpublic%2Fnote%2FMySql%2F%E6%94%B9%2Fimg.png)
当没有指定where的条件时:
![img_1.png](..%2F..%2Fpublic%2Fnote%2FMySql%2F%E6%94%B9%2Fimg_1.png)