Skip to content

Commit

Permalink
doc: update docs/mysql.md fixed jaywcjlove#827
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 17, 2024
1 parent acf4c11 commit 2bac216
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bac216

Please sign in to comment.