mysql命令行中包含table的命令

juneyale

关注

阅读 80

2022-01-28


mysql命令行中包含​​table​​的命令

  • create
mysql> create table test(id int not null );
Query OK, 0 rows affected (0.15 sec)
  • alter
mysql> alter table t add column name varchar(20);
Query OK, 0 rows affected (0.34 sec)
Records: 0 Duplicates: 0 Warnings: 0
  • rename
mysql> create table test(id int not null );
Query OK, 0 rows affected (0.15 sec)
  • drop
mysql> drop table t;
Query OK, 0 rows affected (0.13 sec)



精彩评论(0)

0 0 举报