0
点赞
收藏
分享

微信扫一扫

mysql命令行中包含table的命令

juneyale 2022-01-28 阅读 80


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 条评论