我有這樣的跨數據庫查詢...差異在MySQL JOIN VS LEFT JOIN
SELECT
`DM_Server`.`Jobs`.*,
`DM_Server`.servers.Description AS server,
digital_inventory.params,
products.products_id,
products.products_pdfupload,
customers.customers_firstname,
customers.customers_lastname
FROM `DM_Server`.`Jobs`
INNER JOIN `DM_Server`.servers ON servers.ServerID = Jobs.Jobs_ServerID
JOIN `cpod_live`.`digital_inventory` ON digital_inventory.jobname = Jobs.Jobs_Name
JOIN `cpod_live`.`products` ON products.products_pdfupload = CONCAT(digital_inventory.jobname, ".pdf")
JOIN `cpod_live`.`customers` ON customers.customers_id = products.cID
ORDER BY `DM_Server`.`Jobs`.Jobs_StartTime DESC LIMIT 50
它運行良好,直到我讓他們LEFT JOIN
秒。我認爲,通過不指定一種類型的連接,它被假定爲LEFT JOIN
。這不是這種情況嗎?
請顯示你得到的錯誤,thx。 – 2012-03-19 12:41:36