首页 >数据库 >mysql教程 >sqlserver中将varchar类型转换为int型

sqlserver中将varchar类型转换为int型

WBOY
WBOY原创
2016-06-07 14:57:372932浏览

无详细内容 无 select * from yourtable order by cast(yourcol as int); select * from yourtable order by convert(int,yourcol);

63b9e1214f15339a825ad2f9dda54dbb 11da01c6148ec3ec20c6fdc9adc31f96
select * from yourtable order by cast(yourcol as int); 

select * from yourtable order by convert(int,yourcol); 
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn