#创建数据库Testedb1
create database Testedb1 ;
#查看数据库
show databases;
#使用数据库
use Testedb1;
#查看正在使用的数据库
select database() ;
#创建表student,student表的字段、字段类型、字段属性属性:
create table student(
id int(10) not null unique primary key auto_increment,
stu_id int(10) not null,
name varchar(20),
sex varchar(4),
grade int(10)
);
原文:https://www.cnblogs.com/testerg/p/14727200.html