Auto commit
This commit is contained in:
parent
7396f8a08a
commit
ed95e210ff
@ -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查询
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user