Search inside serialize data with MYSQL

后端 未结 3 504
时光取名叫无心
时光取名叫无心 2021-02-11 08:35

I\'d like to search inside serialized array, data look like :

a:7:{i:0;s:2:\"34\";i:1;s:1:\"0\";i:2;s:2:\"42\";i:3;s:2:\"33\";i:4;s:2:\"48\";i:5;s:2:\"62\";i:6;s:2

3条回答
  •  一整个雨季
    2021-02-11 09:13

    You're building $id_serialize, but are using $serialize in the query string., so you're searching for ... LIKE '%%', most likely.

提交回复
热议问题