MySQL数据库命令行操作

数据库命令行操作

命令行操作数据库, [if exists] 可加可不加, 命令行操作一定要加英文分号 ; 结尾

创建数据库 : create database [if not exists] 数据库名;

create database if not exists test;

删除数据库 : drop database [if exists] 数据库名;

drop database if exists test;

查看数据库 : show databases;

show databases;

使用数据库 : use 数据库名;

use test;

猜你喜欢

转载自blog.csdn.net/weixin_44953227/article/details/108752845
今日推荐