Auto commit

This commit is contained in:
smallkun 2025-02-20 16:58:46 +08:00
parent 7396f8a08a
commit ed95e210ff

View File

@ -110,7 +110,21 @@ DELETE FROM booktype
WHERE type_id = 1;
```
**更新图书**
将图书表的图书备注更新成作者名 备注的组合
```sql
/*
更新
UPDATE 表名
SET 字段名=新值
WHERE 条件;
*/
#将图书表的图书备注更新成作者名 备注的组合
UPDATE book
SET book_remark = CONCAT(book_author,' ',book_remark);
```
## MySQL查询