正常写法:
select * from table_name t where t.a in (‘参数’);
当在写存储过程in里面的列表用个传入参数代入的时候,就需要用到如下方式:
主要用到find_in_set函数 :
select * from table_name t where find_in_set(t.a,'参数');
正常写法:
select * from table_name t where t.a in (‘参数’);
当在写存储过程in里面的列表用个传入参数代入的时候,就需要用到如下方式:
主要用到find_in_set函数 :
select * from table_name t where find_in_set(t.a,'参数');