首页 > 技术文章 > mysql中将varchar转int排序 cast(good_index as UNSIGNED INTEGER)

qiaoer1993 2019-07-09 19:56 原文

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)

 

推荐阅读