mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-16 20:21:22 +08:00
doc: update docs/mysql.md fixed #827
This commit is contained in:
@ -167,10 +167,11 @@ ALTER TABLE t DROP constraint;
|
||||
ALTER TABLE t1 RENAME TO t2;
|
||||
```
|
||||
|
||||
将列c1重命名为c2
|
||||
将列 c1 重命名为 c2
|
||||
|
||||
```sql
|
||||
ALTER TABLE t1 RENAME c1 TO c2 ;
|
||||
ALTER TABLE t1 CHANGE c1 c2 datatype;
|
||||
ALTER TABLE table_name RENAME COLUMN c1 TO c2;
|
||||
```
|
||||
|
||||
将列c1的数据类型改为datatype
|
||||
|
Reference in New Issue
Block a user