mysql使用临时表sql错误1054未知列

mysql使用临时表sql错误1054未知列,mysql,database,Mysql,Database,错误消息是: CREATE TEMPORARY TABLE IF NOT EXISTS temp27 (temp2_id integer not null auto_increment primary key, temp2_court_id integer, temp2_sport_id integer, temp2_date datetime, temp2_weekday varchar(255), temp2_slot_start_time datetime, temp2_slot_end_

错误消息是:

CREATE TEMPORARY TABLE IF NOT EXISTS temp27
(temp2_id integer not null auto_increment primary key,
temp2_court_id integer,
temp2_sport_id integer,
temp2_date datetime,
temp2_weekday varchar(255),
temp2_slot_start_time datetime,
temp2_slot_end_time datetime,  
temp2_rank integer);


insert into temp27(temp2_court_id,temp2_sport_id,temp2_date,temp2_weekday,temp2_slot_start_time,temp2_rank)
select @court_id,@sport_id,@date1,@weekday1,get_slot_time.slot_time_intervals,(@curRank := @curRank + 1) from get_slot_time,(SELECT @curRank := 1) r;

update temp27,get_slot_time 
set temp27.temp2_slot_end_time=get_slot_time.slot_time_intervals
where temp27.temp2_rank=get_slot_time.get_slot_time_id; 

insert into temp3(temp3_court_id,temp3_sport_id,temp3_date,temp3_weekday,temp3_start_time,temp3_end_time)
select a.temp2_court_id,a.temp2_sport_id,a.temp2_date,a.temp2_weekday,a.temp2_slot_start_time,
a.temp2_slot_end_time from temp27 a;

您想显示完整的错误消息吗?DML引用了我们没有的其他表,因此如果没有更准确的错误消息,我们将无能为力是,mysql错误1054未知列temp27.temp2\u slot\u start\u time您确定代码中没有输入错误吗?不,键入的代码是正确的。。。。
mysql error 1054 unknown column temp27.temp2_slot_start_time