--1,房间表(rootype='1'表示豪华双人房,roomstuats='0'表示末入住) create table roomlist (roomid char(6) primary key, roomtypeid int , roomstatus bit check (roomstatus in (0,1))) go
--3,房间类别列表(roomtypelist,'1'为豪华房,'2'为单人高级房,'3'为双人高级房) create table roomtypelist (roomtypeid int primary key, roomtype char(20) not null, roomcost money not null) go
--4,顾客表(guest) create table guest (guestid int primary key IDENTITY(10001,1), guestname char(10) not null, guestcardno char(20) not null, guestsex char(2), guestphone char(30)) go