invade mysql 初学者学习mysql create by lee

     one:           sudo apt-get install mysql-server mysql-client

    two:            show database; use mysql ; describe db;  //注意要用结尾结束语句的查询

   

以下就是建立数据库,与建立表了。

create database lee

 use lee

create table student (id int(3) auto _increment not null primary key, name char(8) sex char(2), addon date);

query ok

insert into student values('1' ,'chenli','boy','1984-06-12')

affect 1;

这样以来完成了表的建立与数据的插入,我要去休息了,我会继续完成对数据对mysql的命令行工具的使用笔记,以促进我对新的知识补充,尽管有点乱,但一图顶万字。

原文地址:https://www.cnblogs.com/chenli0513/p/1880261.html