1、字符串转Integer

SELECT CAST (title as integer)

  FROM xxx where code='-1';

2、字符串转整型之后排序

ordey by cast(unit as integer)

posted on 2020-09-08 17:09  dancser  阅读(2018)  评论(1编辑  收藏  举报