show databases 数据库名 //显示数据库
create database 数据库名 //创建数据库
drop databases 数据库名 //删除数据库
//使用数据库前use
use 使用数据库
create table teacher( //创建表结构
id int(3) auto_increment not null primary key,
name char(10) not null,
mima varchar(20) not null //注意最后一行是没有,号的
);
show tables; 显示数据库中的表
describe usersinfo;显示数据库中表的结构
insert into teacher values("","","","");//插入内容
转载于:https://my.oschina.net/u/1423127/blog/399210