You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
920 B
43 lines
920 B
create database cs;
|
|
|
|
use cs;
|
|
|
|
create table ygxx( #员工信息表
|
|
Ygbh char(8) not null primary key, #员工编号
|
|
Name varchar(8) not null, #姓名
|
|
Sex Char(2) not null, #性别
|
|
Zw varchar(10) not null, #职务
|
|
Kl varchar(20) not null, #口令
|
|
Qxjb char(1) not null, #权限级别
|
|
Sfzh Char(18), #身份证号
|
|
ssbmbh char(4) #所属部门编号
|
|
);
|
|
|
|
|
|
create table bmxx(
|
|
bmbh char(8) NOT NULL primary key,
|
|
bmmc varchar(4) not null);
|
|
|
|
create table spxx(
|
|
Spbh char(8) not null primary key,
|
|
Spmc varchar(20) not null,
|
|
Sslb char(8) not null,
|
|
Jg FLOAT(10,2) not null,
|
|
sl int(4) not null);
|
|
|
|
create table supplier(
|
|
Gysbh Char(8) not null primary key,
|
|
Gysmc varchar(8) not null,
|
|
Dz varchar(20) not null,
|
|
Yzbm char(6) not null,
|
|
Dhhm varchar(15) not null,
|
|
Sh varchar(3) not null,
|
|
Yhzh varchar(20) not null,
|
|
Khyh varchar(8) not null,
|
|
Lxr varchar(8) not null,
|
|
beizhu varchar(16));
|
|
|
|
show tables;
|
|
|
|
desc bmxx;
|