Ideally, post meta should never be stored in a serialized form to begin with, thus making it easy to query. If the code uses the standard methods for storing meta instead of self-serializing it, then each item would be in its own row and easily queryable.
If the data is stored serialized, then you have very few options. SQL is not capable of unserializing the data by itself. You must process it with PHP code.
Related Posts:
- Why WordPress choose data serialization over json_encode?
- Dealing with Many Meta Values, 30+
- What is the most secure way to store post meta data in WP?
- How to delete outdated, wrongly sized images in _wp_attachment_metadata?
- Meta query interfering with orderby relevance
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- How to solve slow WordPress site caused by attachment_metadata
- Delete all post meta except featured image
- Is it possible to store visitors IPs in wp_postmeta table?
- Multiple postmeta with same name for one post in wp_postmeta table
- Delete all post meta except featured image Using SQL
- One post carries 30 postmeta values, is this too much?
- delete post meta from db, even if does not exist?
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- Storing data for a wordpress plugin
- Where does the actual data stored by add_post_meta
- Structure of postmeta meta_value for woocommerce product download
- Routine to convert custom post meta from old to new value
- Saving zero as meta value
- Uknown meta entries in wp_postmeta
- Link image with data from the wpdb
- Custom Post Type not showing anything added by code anymore?
- Compare User meta_value with Product meta_value
- How to save EXIF metadata in WordPress database?
- _wp_attachment_metadata is not being added to database when PDF files uploaded
- “BS_” rows in postmeta table
- Migrating meta_key and meta_value from old theme to new one
- Database structure for thousands of posts
- How much post meta data is too much?
- How do i get value from wp_postmeta?
- Recommended Post Structure for DB Storage
- SQL query : Select a thumbnail for a media
- phpMyAdmin – Error > Incorrect format parameter?
- Why is my database import losing text widget data?
- Does dbDelta delete columns as well?
- Insert data in database using form
- how can get database name in wordpress?
- Long option names fail silently?
- Upload files – total size limit – WordPress/Contact Form 7
- Relationship between performance and database size
- WordPress and automated MySQL backups to a different host
- Scheduling posts in database
- Size article thumbnails and retrieve them directly from database
- Should I be able to run two different “close” code versions of wordpress with the same DB
- Need of separate security plugins for both root and subfolder sites WordPress?
- Escaping / encoding data before insert into a database?
- how to store arrays into a database
- Error: SELECT SQL_CALC_FOUND_ROWS
- Where are WP_Errors Saved
- Get all images from this database table
- Delete transients in website
- Error establishing database connection – high traffic?
- Populate dropdown from database
- wordpress ‘database update required’ loop after update
- Database Table for customer user
- Is there a solution to auto-post data to a WP post from a database
- How to Access wp_usermeta Data Immediately After a New User is Created
- Cleanup: best way to remove WooCommerce comments from the wp_comments table
- How to paginate information obtained from a query to a custom table?
- How can I show related posts from multiple separate installations
- WordPress site URL changed; how to fix it without database access?
- I’m not able to get access to $wpdb [duplicate]
- Two prefixes in database? Which one is valid?
- Enter user registration information in the database
- Problem in using wpdb
- Create database on installation
- Importer fails to import every post
- Options on how to Display member specific data from a MS SQL database
- Unkown meta_value in ACF
- Buddypress avatar image in database [closed]
- WordPress security [closed]
- Installing local to live WP into subdirectory
- WordPress SQL – How to Check for Category?
- Getting WordPress to work inside a rails 3 application
- Advantages of dbDelta
- Only allow user to access a link once a year, based on their joining date
- MSQL database wp_postmeta has meta key tve_revision
- Occasional Error Establishing a Database Connection
- Display user data in numbered list
- Removing old_slug and old_date from WordPress Database
- Help with $wpdb on custom code
- How do I change several broken URLs in a several wordpress databases in the fastest way?
- Optimize WP site for millions of posts
- I Want a More Concice Form of Data than an Array
- Duplicate database to roll back theme & content changes
- WordPress Migration – Issue with admin panel changes
- mySQL database size large, but tables size less
- Error establishing database connection error during first WordPress run
- I have include wp-config, should I add global $wpdb also?
- Localize strings from db
- Can’t Install WordPress (local) Failed to open file wp-includes/wp-db.php
- version control for wordpress? (wordpress folder and database at same time)
- Redirect Issue: WordPress database
- Install WordPress with SQL database
- Creating Job Tickets
- Best db table structure for users with many records
- How to stop WordPress from using utf8mb4_unicode_ci collation
- WP_Query by meta key not returning any posts
- Cant Connect to Database
- WordPress database connection failed, while mysql client is working [closed]