mysql实践(一)

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;

posted @ 2018-12-05 13:38  王大老爷  阅读(266)  评论(0编辑  收藏  举报