夏日酒店sql
来源:互联网 发布:与阿里云战略合作 编辑:程序博客网 时间:2024/04/26 03:28
drop table adinfo;
drop table user;
drop table rgroup;
drop table resource;
drop table olist;
drop table oinfo;
create table adinfo
(
adname varchar(10) primary key,
adpwd varchar(20) not null,
adlevel int not null
);
create table user
(
uname varchar(20) PRIMARY KEY,
pwd varchar(20) NOT NULL,
telNum varchar(20) NOT NULL,
realName varchar(10),
gender char(2) DEFAULT '��',
email varchar(40) NOT NULL
);
create table rgroup
(
gId int primary key,
gName varchar(10),
gImg varchar(40),
gDetail varchar(200) not null,
gOrderDet varchar(300) not null
);
create table resource
(
rid int,
rgroup int references rgroup(gid),
rgid varchar(10),
rlevel varchar(10) not null,
rmoney double not null,
rdetail varchar(100),
rstatus varchar(10) default '����',
primary key(rid,rgid)
);
create table olist
(
oid int primary key,
oname varchar(20) not null,
otime varchar(20) not null,
odeal varchar(20) default '��',
ostatus varchar(10) default 'Ԥ����',
oreason varchar(100) default '��'
);
create table oinfo
(
orid int primary key,
oid int references olist(oid),
rgid varchar(10) references resource(rgid),
ftime varchar(20) not null,
etime varchar(20) not null,
ostatus varchar(10) not null default 'Ԥ����'
);
drop table user;
drop table rgroup;
drop table resource;
drop table olist;
drop table oinfo;
create table adinfo
(
adname varchar(10) primary key,
adpwd varchar(20) not null,
adlevel int not null
);
create table user
(
uname varchar(20) PRIMARY KEY,
pwd varchar(20) NOT NULL,
telNum varchar(20) NOT NULL,
realName varchar(10),
gender char(2) DEFAULT '��',
email varchar(40) NOT NULL
);
create table rgroup
(
gId int primary key,
gName varchar(10),
gImg varchar(40),
gDetail varchar(200) not null,
gOrderDet varchar(300) not null
);
create table resource
(
rid int,
rgroup int references rgroup(gid),
rgid varchar(10),
rlevel varchar(10) not null,
rmoney double not null,
rdetail varchar(100),
rstatus varchar(10) default '����',
primary key(rid,rgid)
);
create table olist
(
oid int primary key,
oname varchar(20) not null,
otime varchar(20) not null,
odeal varchar(20) default '��',
ostatus varchar(10) default 'Ԥ����',
oreason varchar(100) default '��'
);
create table oinfo
(
orid int primary key,
oid int references olist(oid),
rgid varchar(10) references resource(rgid),
ftime varchar(20) not null,
etime varchar(20) not null,
ostatus varchar(10) not null default 'Ԥ����'
);
- 夏日酒店sql
- 夏日
- 夏日
- 夏日
- 酒店管理.sql
- SQL高级 第八章 酒店管理系统
- 夏日.梦
- 夏日荷花
- 感受夏日
- 夏日物语
- 夏日炎炎
- 夏日笔画
- 夏日炎炎
- 夏日炎炎
- 夏日凉茶
- 悠然夏日
- 亲吻夏日
- 夏日感怀
- android 触摸事件、点击事件的区别
- android学习笔记20--------------RelativeLayout的使用
- 【Python】实现字体中字符的点阵转换
- Android模拟器学framework和driver之传感器篇0(导读)
- iesample与iesimple的区别
- 夏日酒店sql
- static_cast、dynamic_cast reinterpret_cast和const_cast
- win7+笔记本下路由器和交换机终端的配置
- android study ------ HAL ---> light sensor
- Java集合类和HashMap遍历
- Windows 服务程序
- 用模板做A+B Problem时遇到的小问题
- 转一个蛋疼的卷子
- em替代px轻松改变IE字体大小