您好我有DB2选择CASE语句:SQL CASE语句返回错误
case when actualfinish is not null then dec ((timestampdiff(
4,
char(actualfinish - reportdate))/60.00),10,2)
else 'not'
end
它返回我的错误。 如果我删除ELSE部分没有错误并且计算完成。
case when actualfinish is not null then dec ((timestampdiff(
4,
char(actualfinish - reportdate))/60.00),10,2)
end
如果我改变的部分然后像
也没有错误。
但是对于我的完整SQL查询 - 找不到错误。这里 感谢
什么数据类型,则DEC()函数的返回? – Chandu 2012-07-07 17:28:28