sqlserver中将varchar类型转换为int型

2015-01-27 0 923
sqlserver中将varchar类型转换为int型
select * from yourtable order by cast(yourcol as int); 

select * from yourtable order by convert(int,yourcol); 

遇见资源网 sql sqlserver中将varchar类型转换为int型 http://www.ox520.com/17489.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务