A-A+
【简答题】航空网的几个航班查询题: 实验环境: create table city(cityID int auto_increment primary key cityName varchar(20)); create table flight (flightID int auto_increment primary key StartCityID int references city(cityID) endCityID int references city(cityID) StartTime
问题详情
【简答题】航空网的几个航班查询题: 实验环境: create table city(cityID int auto_increment primary key, cityName varchar(20)); create table flight (flightID int auto_increment primary key, StartCityID int references city(cityID), endCityID int references city(cityID), StartTime timestamp); //航班本来应该没有日期部分才好,但是下面的题目当中涉及到了日期 insert into city values (null,"北京"), (null,"上海"), (null,"广州"); insert into flight values (null,1,2,"9:37:23"), (null,1,3,"9:37:23"), (null,1,2,"10:
参考答案
D