1. 程式人生 > >mysql查詢 關聯查詢1

mysql查詢 關聯查詢1

在這裡插入圖片描述

SELECT cr.id,cr.inst_id,cr.title from cloud_recruitmen cr 
 INNER JOIN (SELECT DISTINCT  inst.id from inst_institution inst where inst.regionid like '%340000%') cin 
 on cin.id = cr.inst_id where cr.is_flag = '0' and cr.`status` = '1';