mysql基础 FIND_IN_SET 代替 or 查询 ,where 条件查询 代替 or

select * from table sin where 

FIND_IN_SET('FAL5',CONCAT_WS(',', sin.DISPLAY_NAME,sin.ROUTE_CODE))

-- 查  DISPLAY_NAME 有FAL5  或者 ROUTE_CODE 有 FAL5


猜你喜欢

转载自www.cnblogs.com/angdh/p/11822969.html