MySQL数据库基本命令七

 时间:2026-02-14 17:45:03

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数据库基本命令七

  • MySQL数据库基本命令八
  • MySQL数据库基本命令十三
  • Dos命令怎么连接mysql数据库
  • 数据库索引如何使用
  • 数据库获取当前时间
  • 热门搜索
    磅礴的意思 风幕机作用 悠然的意思 什么是正确的价值观 寂寞的意思 续航是什么意思 突兀森郁的意思是什么 黄酒的作用 bom是什么意思 凯旋的意思