关于小数的处理。 select cast(字段 as int) from 表 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --测试数据declare @t table(col float)insert @t select 2.00000000E-6union all select 3.3999999union all select 12.000001--查询select cast(col as int) as col from @t/*--结果col ----------- 0312(所影响的行数为 3 行)--*/ select convert(decimal(16,1),列) from 表 --也可以:select convert(numeric(16,1),列) from 表 跪求SQL语句求差语句 这个修改语句该怎样写 使用表变量出错,不知道错在哪里... 求一自定义函数,在线等 数据库连接错误 sqlserver2008的JDBC连接出错 本机可以远程虚拟机的sql server2008,但虚拟机无法远程本机的sql server2008 急!!!!!error 926 database 'msdb' cannot be opened 有谁知道sql server 2000里有一个全文检索的功能? 妙趣无穷-_- 操作系统和数据库高手进(最好要有实践经验) 求sql语句,看这样能不能实现! 货代录单 查询运费系统
declare @t table(col float)
insert @t select 2.00000000E-6
union all select 3.3999999
union all select 12.000001--查询
select cast(col as int) as col from @t/*--结果
col
-----------
0
3
12(所影响的行数为 3 行)
--*/
select convert(numeric(16,1),列) from 表