网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

MySQL数据库基本命令七

时间:2024-11-11 05:21:48

1、desc 表名;(查询表中信息)

MySQL数据库基本命令七

2、alter table 表名 add 性别 enum('男','女')after id;(插入列在id之后)

MySQL数据库基本命令七

3、alter table 表名 add 新字段名 数据类型() first;(插入列在第一个位置)

MySQL数据库基本命令七

4、drop database 数据库名;(删除数据库)

MySQL数据库基本命令七

5、show create table 表名;(查看表结构)

MySQL数据库基本命令七

6、set password=password(‘密码’);(修改数据库密码)

MySQL数据库基本命令七
© 2025 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com