Mysql sort data by CAST meta value as integer ACS

Sắp xếp dữ liệu theo meta_value

SELECT *  FROM `wp_postmeta` WHERE `meta_key` = 'position_property_featured' ORDER BY CAST(`meta_value` AS INTEGER) ASC;

Leave a Reply

Your email address will not be published. Required fields are marked *