MYSQL如何在数组列中查找

时间:2017-10-22 23:40:26

标签: mysql sql

我需要在MYSQL示例中的colum类型数组中使用fin:

  Select * from item where types = 4 
  where types is an array column example types = (1,2,3,4);

感谢。

1 个答案:

答案 0 :(得分:0)

如果我理解正确,您想要搜索多个ID,则需要执行以下操作:

Select * from item where types IN (1,2,3,4);