我正在查询一个包含数千行的相当大的数据库。它大约需要 5 分钟,而应该需要大约 5 秒。
ResultSet rs = st.executeQuery("SELECT flights.airline, flights.flight_num,"
+ "origin_airport_code, destination_airport_code,"
+ "ticket.date, ticket.bought_date, ticket.price "
+ "FROM flights JOIN flightinfo JOIN ticket");
我应该使用某种特定类型的 join JOIN 语句吗?