CREaTE DATABASE _2017270415;
USE _2017270415;
CREATE TABLE shouyinyuan
(id int PRIMARY KEY,
name VARCHAR(20) ,
zhanghao VARCHAR(20) not null ,
password VARCHAR(20) not null,
shangping VARCHAR(20) NOT NULL,
sex VARCHAR(20) NULL,
phone VARCHAR(20) not NULL,
)
CREATE TABLE kuguanyuan
(id int PRIMARY KEY,
name VARCHAR(20) ,
zhanghao VARCHAR(20) not null,
password VARCHAR(20) not null,
sex VARCHAR(20),
phone VARCHAR(20)NOT NULL,
)
CREATE TABLE shangping
(id int PRIMARY KEY,
name VARCHAR(20) ,
time VARCHAR(20) not NULL,
jiage VARCHAR(20) NULL,
kucun VARCHAR(20) NULL,
zhizaoshang VARCHAR(20) NULL,
)
CREATE TABLE gongyingshang
(id int PRIMARY KEY,
name VARCHAR(20) ,
phone VARCHAR(20) NOT NULL,
jiage VARCHAR(20) NULL,
leixing VARCHAR(20)
);
INSERT INTO shouyinyuan (id,name,zhanghao,password,shangping,sex,phone)
VALUES(‘1’,‘张三’,‘123’,‘123’,‘4’,‘男’,‘123’),
(‘2’,‘李四’,‘123’,‘123’,‘4’,‘男’,‘123’),
(‘3’,‘王五’,‘123’,‘123’,‘4’,‘男’,‘123’)