mysql中将varchar转int排序 cast(good_index as UNSIGNED INTEGER)

select name,good_index from crawled_goods where channel='jdzgb-beijing' and batch_id='2019070912' and cate2_name='饮料' ORDER BY cast(good_index as UNSIGNED INTEGER)

原文地址:https://www.cnblogs.com/qiaoer1993/p/11160070.html