今天预习学习的mysql语句mysql
建立一个oldboy库sql
create database oldboy;
ide
删除一个oldboy库学习
drop database oldboy; it
更新table
flush privileges; class
进入oldboy库sql语句
use oldboy;db
建立一个student表tab
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;
能够看表结构
desc student;