摘要: 将表达式改为: case when b=0 then 0 else a/b end 阅读全文
posted @ 2015-01-08 11:01 wonkju 阅读(445) 评论(0) 推荐(0)
摘要: 语法: select x into new_tableName from ori_tableName例如:SELECT [site] ,[day] ,[val]/31.4 [val] into t_init FROM [RainFactor].[dbo].[t_fa... 阅读全文
posted @ 2015-01-08 09:28 wonkju 阅读(1395) 评论(0) 推荐(0)
摘要: 如,FErrorTimes为Null时,要增加“1”,而“Null + 1”还是等于Null。使用语句可以写成:Update T_Table set FErrorTimes= ISNull(FErrorTimes,0)+1where FName=@name. 阅读全文
posted @ 2015-01-08 08:25 wonkju 阅读(246) 评论(0) 推荐(0)