如何在SQL Server 2005上使用SQL查询将字符串转换为整数?
You could use CAST or CONVERT :
(您可以使用CAST或CONVERT :)
SELECT CAST(MyVarcharCol AS INT) FROM Table SELECT CONVERT(INT, MyVarcharCol) FROM Table
1.4m articles
1.4m replys
5 comments
57.0k users