1.创建数据库:create database test;
2.查看数据库:show databases;
3.使用数据库:use test;
4.查看数据表:show tables;
5.创建数据表:create table tb1(nid int,name varchar(20));
6.插入数据:insert into tb1(nid,name) values(1,'sam');
7.查询数据:select * from tb1;
1.创建数据库:create database test;
2.查看数据库:show databases;
3.使用数据库:use test;
4.查看数据表:show tables;
5.创建数据表:create table tb1(nid int,name varchar(20));
6.插入数据:insert into tb1(nid,name) values(1,'sam');
7.查询数据:select * from tb1;
转载于:https://www.cnblogs.com/lensman/p/10070471.html