- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 ceiling 和 floor 函数
ceiling函数返回大于或等于所给数字表达式的最小整数。floor函数返回小于或等于所给数字表达式的最大整数。比如celling(12.1) 结果为 13floor(12.1)结果为 12...
2013-12-25 10:54:52
2122
原创 保留小数
create table #abc(num decimal(14,6) null)insert into #abc(num)select 123.211432unionselect 123.219103unionselect 123.210921select * , case when '0' = substring( cast ( num as varc...
2013-12-25 10:52:49
130
原创 patindex 和 charindex 函数
charindex函数返回字符或字符串在另一个字符串中的起始位置。charindex函数调用方法如下: charindex ( expression1 , expression2 [ , start_location ] ) expression1是要到expression2中寻找的字符中,start_location是charindex函数开始在expression2中找ex...
2013-12-25 10:48:57
294
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人