mysql 关联条件 中使用 like

来源:互联网 发布:mac物理地址不匹配 编辑:程序博客网 时间:2024/06/13 16:11
select *from (select a.*,concat(b.id,'-',b.first_key,'-',b.second_key) as contain_key_word from key_data_0503 a  join key_word bon a.question_desc like  concat('%' ,b.first_key ,'%')and a.question_desc like concat('%' ,b.second_key ,'%')#where a.create_time < '2017-04-17'order by a.create_time) tgroup by id


0 0