运行此脚本时出现上述错误:
SELECT s1.Station_Name as Station, s1.St_Town as Town, cg1.CaporGen as Type, ht1.HYDRO_NAME as Typology
FROM station s1, capacityandgeneration cg1, hydro_type ht1
JOIN station s2 ON cg1.station_id=s2.Station_ID
inner join hydro_type ht2 on cg2.hydro_type_id=ht2.type_id;
但是当我删除第三张桌子时它工作正常:
SELECT s1.Station_Name as Station, s1.St_Town as Town, cg1.CaporGen as Type
FROM station s1, capacityandgeneration cg1
JOIN station s2 ON cg1.station_id=s2.Station_ID;
我已经尝试了使用列别名的各种排列,但不断出现上述错误。请告诉我我的方式的错误,因为我现在很困惑。
干杯西蒙