今天預習學習的mysql語句
建立一個oldboy庫
create database oldboy;
删除一個oldboy庫
drop database oldboy;
更新
flush privileges;
進入oldboy庫
use oldboy;
建立一個student表
create table student(
id int(4) not null,
name char(20) not null,
age tinyint(2) NOT NULL default '0',
dept varchar(16) default NULL
);
檢視表
show tables;
可以看表結構