sqlserver中将varchar类型转换为int型

select * from TableName order by cast(colName as int); 
 
select * from TableName order by convert(int,colName);

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页