摘要: 1、向上进位取整。Math.Ceiling例如: Math.Ceiling(32.2)=33; Math.Ceiling(32.0)=32;2、向下舍位取整。Math.Floor例如: Math.Floor(32.6)=32;3、取指定位数的小数。Math.Round例如:Math.Round(36... 阅读全文
posted @ 2014-12-01 20:42 甲壳虫博客 阅读(313) 评论(0) 推荐(0)
摘要: 分页的SQL语句sql="select * from (select row_number() over(orderby id) as num,* from table)as t where t.num>=@start and t.num<=@end";分页的公式int start=(pageInd... 阅读全文
posted @ 2014-12-01 20:39 甲壳虫博客 阅读(879) 评论(0) 推荐(0)