mysql中EXISTS與IN用法比較

一、使用方式:html (1)EXISTS用法mysql select a.batchName,a.projectId from ucsc_project_batch a where EXISTS (select b.id from ucsc_project b where a.projectId = b.id)sql 上面這條SQL的意思就是:以ucsc_project_batch爲主表查詢ba
相關文章
相關標籤/搜索