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)

 

posted @ 2019-07-09 19:56  乔儿  阅读(1187)  评论(0编辑  收藏  举报