e2

滴滴侠,fai抖

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

需求模拟:

 

从业务表中取关键字:

 

根据关键字模糊查询内容, 符合条件返回整条:

 

sql模板:

select
*
from
inf_order_evaluate as oe
where
oe.Content like CONCAT('%', (select PaintOrderTypeName from wor_paint_order_type where PaintOrderTypeId = 3), '%')

 

查询结果:

 

posted on 2017-08-27 15:33  纯黑Se丶  阅读(433)  评论(0编辑  收藏  举报