您的位置:首页 >MySQL如何显示创建表的语句、显示表结构和删除表
发布于2023-04-28 阅读(0)
扫一扫,手机访问
语法:
show create table 表名
mysql> use bs_ky_blog
Database changed
mysql> show tables;
+----------------------+
| Tables_in_bs_ky_blog
+----------------------+
| bg_category
| bg_post
| bg_user
+----------------------+
3 rows in set (0.00 sec)
mysql> show create table bg_post;
语法:
describe 表名
mysql> describe bg_post;
语法:
drop table [ if exists] 表名1,表名2...
mysql> drop table stu1;
Query OK, 0 rows affected (0.03 sec)
mysql> drop table if exists stu;
Query OK, 0 rows affected (0.01 sec)
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
7
9