Unserialize data and check it against an id in MySQL
Posted
by kylex
on Stack Overflow
See other posts from Stack Overflow
or by kylex
Published on 2010-06-17T19:59:12Z
Indexed on
2010/06/17
20:03 UTC
Read the original article
Hit count: 203
I have a row of IDs in a database that has been serialized.
What I'm trying to do is check those serialized IDs against a known ID to see if it should be excluded or not.
for example:
"SELECT * FROM mydb WHERE id = 4 AND checkID != 'an id in the serialized column' "
What's the best way to go about this?
© Stack Overflow or respective owner