admin管理员组文章数量:1130349
As long I don't need to do a query with the data of all users, storing data like the zip code or city in the meta data as an serialized object works fine. But now I have to do a lot of different selects concerning users meta data, f.i. "select all users which are living in London". How can I do such a query in WordPress if CITY is not a single field in a table, but part of a bunch of serialized data in one field in the wp_usermeta table. I assume there is not an easy way to do this.
So my question, how to manage data that should be available as property of an object and could also be used in a query like mentioned above.
As long I don't need to do a query with the data of all users, storing data like the zip code or city in the meta data as an serialized object works fine. But now I have to do a lot of different selects concerning users meta data, f.i. "select all users which are living in London". How can I do such a query in WordPress if CITY is not a single field in a table, but part of a bunch of serialized data in one field in the wp_usermeta table. I assume there is not an easy way to do this.
So my question, how to manage data that should be available as property of an object and could also be used in a query like mentioned above.
本文标签: How to do a sql like query on serialized data of user meta data
版权声明:本文标题:How to do a sql like query on serialized data of user meta data 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749128811a2320230.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论