select case when concat(',',1,',') like concat(',','1,4,5,2,22,11,6,3',',') then 123 else 456 end as dd
字段AA值可能为空 也可能为如同这种字符串:1,4,5,2,22,11,6,3 我用 Select * from mes where concat(',',"+ID+",',') not like concat(',',AA,',') 可以实现但有个问题:如果AA值为NULL就失效了 列不出来了 请问如何实现??
case when concat(',',1,',') like
concat(',','1,4,5,2,22,11,6,3',',') then 123 else 456 end as dd
我用
Select * from mes where concat(',',"+ID+",',') not like concat(',',AA,',')
可以实现但有个问题:如果AA值为NULL就失效了 列不出来了 请问如何实现??
concat(',',COALESCE(AA.''),',')
concat(',',AA,',')->
concat(',',COALESCE(AA,''),',')