mysql中添加数据库

来源:互联网 发布:算法提高 金陵十三钗 编辑:程序博客网 时间:2024/05/21 03:24
drop database if exists school;
create database school;
use school;
create table teacher

   id int(3) auto_increment not null primary key,
   name char(10) not null,
   address varchar(50) default “深圳“,
   year date

);

insert into teacher values('','glchang','深圳一中','1988-12-10');

insert into teacher values('','wangfei','枣庄三中','1977-12-10');

原创粉丝点击