Home > Database > Mysql Tutorial > sqlserver中将varchar类型转换为int型

sqlserver中将varchar类型转换为int型

WBOY
Release: 2016-06-07 14:57:37
Original
2914 people have browsed it

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

select * from yourtable order by cast(yourcol as int); 

select * from yourtable order by convert(int,yourcol); 
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template