mysql a表like b表的某个字段,mysql一个表的字段like另外一个表的字段

 

select c.FLOW_NAME,a.flow_id,a.prcs_id,a.prcs_name,b.`DESC`
 from bpm_process  as a,bpm_variable as b,bpm_type as c
 where a.flow_id=c.flow_id and b.`DESC` like '%移动%'
 and a.PRCS_ITEM like concat ('%',b.uid ,'%')

你可能感兴趣的:(数据库)