doc: mysql.md modify column (#98)

This commit is contained in:
larry 2022-11-16 12:57:08 +08:00 committed by GitHub
parent 03cc3cf5c3
commit d8a37d084f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,12 @@ ALTER TABLE t1 RENAME TO t2;
ALTER TABLE t1 RENAME c1 TO c2 ;
```
将列c1的数据类型改为datatype
```sql
ALTER TABLE t1 MODIFY c1 datatype;
```
删除表中的所有数据
```sql