mysql FIND_IN_SET basis instead of or query, where the query conditions are in place or

 

 

 

select * from table sin where 

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

- Charles DISPLAY_NAME has FAL5 or ROUTE_CODE have FAL5


 

Guess you like

Origin www.cnblogs.com/angdh/p/11822969.html