码迷,mamicode.com
首页 >  
搜索关键字:isnull    ( 616个结果
MSSQL isnull
语法ISNULL ( check_expression ,replacement_value )参数 check_expression 将被检查是否为 NULL 的表达式。 check_expression 可以为任何类型。 replacement_value 当 check_expre...
分类:数据库   时间:2014-06-12 20:11:35    阅读次数:379
ArcGIS栅格计算器公式大全
1、将特定值(-9999)赋值为0 Con(“InRaster”==-9999,0,”InRaster”) 2、将某一范围内(如小于0)赋值为0 Con(“InRaster” 3、将特定的栅格值(如1)赋值为空值 setnull([raster]==1,[raster]) 3、给空值赋予特定的值(如0) CON(ISNULL([raster]),0,[raster]...
分类:其他好文   时间:2014-06-03 03:03:01    阅读次数:1045
SQL 常用语句
–-表现最差的前10名使用查询SELECT TOP 10 ProcedureName = t.text, ExecutionCount = s.execution_count, AvgExecutionTime = isnull ( s.total_elapsed_time / s.executio...
分类:数据库   时间:2014-05-28 11:25:22    阅读次数:449
sqlserver中top 1 赋值的问题
看代码declare @iid intselect @iid=111select top 1 @iid=isnull(IID,0) from YYGL_PCDMX where IID=0print @iid上面的情况,如果iid=0没有记录,则@iid会取111,为了避免这个问题1、在查询前,初始化...
分类:数据库   时间:2014-05-08 20:13:13    阅读次数:438
mssql2005存手工注入漏洞附攻击方法- 寒龙网出品
/**/跟空格的作用一样,有的时候可以过一些过滤爆库语句,修改红色部分的数字挨个猜出库/**/and/**/(select/**/top/**/1/**/isnull(cast([name]/**/as/**/nvarchar(500)),char(32))%2bchar(124)/**/from/...
分类:数据库   时间:2014-05-08 19:02:39    阅读次数:336
不同数据库中两列字段相减(某列有空值)
数据库中两个字段相减(某列有空值)处理方法:sql server中:select (isnull(字段1,0)-isnull(字段2,0)) as 结果 from 表oracle中:select (nvl(字段1,0)-nvl(字段2,0)) as 结果 from 表mysql中:select (i...
分类:数据库   时间:2014-04-29 16:42:46    阅读次数:925
616条   上一页 1 ... 60 61 62
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!