-2
这是行选项column
表oc_cart
选择INT列,并将其与JSON数组列比较
20,228,27,229
为什么没有发现,当值是228,但结果发现,结果当值的20象下面这样:
select 1 from dual
where 228 in (select option as option from oc_cart)
和结果发现当我改变值至20像
select 1 from dual
where 20 in (select option as option from oc_cart)
所述option
列的数据类型是TEXT
问题通过使用FIND_IN_SET解决 –
谢谢MR.Bill –