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
相关文章
相关标签/搜索