怎么对123.45取整? select cast(round(213.55,0) as int) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 cast(round(123.45,0) as int) select cast(123.45 as int) 四舌五入:select cast(round(123.45,0) as int) select ceiling(1234.566) --四舌五入 1: select convert(int,str(round(1234.566-0.5,0))) ---不四舍五入 //12342: select convert(int,str(round(1234.566,0))) ---四舍五入 //12353: select floor(1234.566) ---不四舍五入 //12344: select ceiling(1234.566) --- //12355: select convert(int,1234.566) //12346: select cast(1234.566 as int) //1234 如何用SQL进行多表的查询 数据库概念? sql2008 安装服务帐户 请求源码支持,如何实现想博士德或者管家婆那样的服务区选择框? 关于sql的“授权模式”的问题! 还原数据库,关于簇的问题 SQL2005 未将对象引用设置到对象的实例(SQLeditors) 请教:我这个存储过程命名规范是否合理?谢谢!!! KingSunSha(弱水三千)大哥!!!请进!Sammo有一个急题请教! 下面程序出现无法绑定由多个部分组成的标识符 "a.tcid",求解决 求sql语句,选最大字段问题 请问如何在程序中实现查询多维数据集?(告诉我个概念就行,不用具体的)
2: select convert(int,str(round(1234.566,0))) ---四舍五入 //1235
3: select floor(1234.566) ---不四舍五入 //1234
4: select ceiling(1234.566) --- //1235
5: select convert(int,1234.566) //1234
6: select cast(1234.566 as int) //1234