以上是我遇到问题的数据库图的一部分!
借助 1 个外部表 base_table 和 3 个表的引用从 3 个表中选择列。但是Sql显示错误
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >
如何解决这个问题!有没有更好的方法来做到这一点。我是 sql 新手,这是我学校项目的一部分
base_table ii 中的 base_id 将通过 C# 中的过程的另一件事 以下是给出错误的代码。
使用[香格里拉] 选择 一个来源,一个目的地, b.flight_name, c.flight_cost,c.flight_seat,c.flight_type, d.flight_time 从 base_table a, flight_main_table b, flight_cost_table c, flight_timing_table d 在哪里 a.base_id=109 和 b.base_id=109 和 c.flight_id=(select flight_id from flight_main_table where base_id=109) and d.flight_id=(从 flight_main_table 中选择 flight_id,其中 base_id=109) 去