我有一个trips表,其中完成的旅行在trips.txnPNR中有一个事务id。我必须找出是否有设置trips.txnPNR的trips,但在driver_contacts.trip中没有用带有该id的行表示。SELECT driver_contacts.tripLEFT JOIN driver_contacts ON trips.id = driver_contacts.trip WHERE trips.`tri
p.ID AS Id LEFT JOIN csdb.users.Accounts AS a ON p.ID = a.IdentityIdLEFT JOIN quantdb.csdb.users.Accounts AS a ON p.ID = a.IdentityId
则不执行左连接从本质上讲,在远程情况下,优化器似乎是在说‘好吧,您不需要Accounts表中的任何列,所以