首頁 >資料庫 >mysql教程 >sqlserver中将varchar类型转换为int型

sqlserver中将varchar类型转换为int型

WBOY
WBOY原創
2016-06-07 14:57:372914瀏覽

无详细内容 无 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); 
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn