comma separated argument for IN operator, MySQL

前端 未结 2 487
滥情空心
滥情空心 2021-01-21 05:56

I have a table in which the following query works fine:

select * 
from session_actions 
where action_type IN (\'login_failed\',\'channel_recorded\')
         


        
2条回答
  •  庸人自扰
    2021-01-21 06:49

    I tried FIND_IN_SET but it was super slow. I rather use haystack REGEXP CONCAT('[[:<:]]', needle, '[[:>:]]') since then.

提交回复
热议问题