1. 程式人生 > >MySQL跨庫查詢例子

MySQL跨庫查詢例子

job sch spa activity 查詢 cti activit fun select

庫1 gxjob

庫2 funshixi

SELECT a.`company_id`,b.`companyname` FROM `gxjob`.`qj_activity_thousands_of_schools` AS a LEFT JOIN `funshixi`.`qj_company` AS b ON a.company_id = b.companyid;

MySQL跨庫查詢例子