Mysql管理指令

Mysql数据库管理指令

show databases; 查询所有数据库
create database 数据库名; 创建数据库
drop database 数据库名;删除数据库
use 数据库名; 进入数据库

Mysql数据库_表管理指令

create table users;
->(id,int primary key, 创建id并且设置主键
-> name text);
show tables 查看数据库表
drop table users 删除指定数据库表

猜你喜欢

转载自blog.csdn.net/weixin_44761758/article/details/89551081