这是我在join两个sql查询时遇到的问题,当时检查了很多遍格式问题,发现并没有缺少‘ )’,最后从头检查时才发现问题。
问题原因:第一个子查询最后一个语句带了分号,终止了语句。
where
dt between '$start_date'
and '$end_date'
and fee is not null;
) aa
join(
select
*
from
解决方法:去掉第一个子查询最后一个语句的分号。
where
dt between '$start_date'
and '$end_date'
and fee is not null
) aa
join(
select
*
from
这样就不会显示EOF错误啦