cast的用法 select cast('1000000.1' as int)出错,select cast('1000000' as int) 就没出错,这是什么原因啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int 是整数类型。10000.1是浮点型。cast('100.1' as float)就OK select cast(cast('1000000.1' as decimal) as int) both 2 statements work well in Teradata.....i'm not sure how it works in SQL Server.try select cast(1000000.1 as int)to see if it works select cast(1000000.1 as int) 这个肯定是可以的呀但是select cast('1000000.1' as int),得先转float,numeric,decimal后再转int sql分页 请教sql2005装完后为什么没有sql enterprise manager? 对T-SQL中的"="的疑问 如何用 like 语句查询时间smalldatetime类型? 如何使用SQL的索引功能? 请高手帮忙,谢谢 .............. 求sql语句 请帮忙 修改一下存储过程 (通过表名得到下一ID) Foxbase下的程序转到Visual FoxPro下打印字体不正常,如何解决? 确认数据更新的来源 关于DTSFTPTask问题 麻烦帮我写一个不复杂的查询语句
10000.1是浮点型。
cast('100.1' as float)就OK
i'm not sure how it works in SQL Server.try
select cast(1000000.1 as int)
to see if it works