菜鸟问题:很简单的
case bl.BusinessLog_TimeLength when 1200 then null when 5256000 then null else dateadd(n, bl.BusinessLog_TimeLength, bl.BusinessLog_BeginTime) end as 'EndTime'
事实上是想判断当bl.BusinessLog_TimeLength >1200时bl.BusinessLog_TimeLength = null,该怎样写?谢谢
问题点数:20、回复次数:3Top
1 楼duanduan1122(俺村俺帅!!!)回复于 2005-06-01 14:11:25 得分 8
case when bl.BusinessLog_TimeLength >1200 then bl.BusinessLog_TimeLength = null endTop
2 楼duanduan1122(俺村俺帅!!!)回复于 2005-06-01 14:12:02 得分 0
这样不就行了吗Top
3 楼hsj20041004(光芒)回复于 2005-06-01 14:13:04 得分 12
bl.BusinessLog_TimeLength =case when bl.BusinessLog_TimeLength >1200 then null when 5256000 then null else dateadd(n, bl.BusinessLog_TimeLength, bl.BusinessLog_BeginTime) end as 'EndTime'Top




