# 创建预定表
create table RESERVATIONS(
resvNum varchar(5) not null,
custID varchar(5) not null,
resvType int check(resvType in (1, 2, 3)),
resvKey varchar(5) check(resvKey in (select flightNum from FLIGHTS union all select HOTELS.hotelNum from HOTELS union all select BUS.busNum from BUS)),
primary key(resvNum));