如何传递可空值sql server报告

时间:2018-01-24 13:05:23

标签: sql-server postgresql reporting-services

使用Odbc连接我在postgres数据库的sql server报告中创建报告。我在传递可空值参数时遇到问题,尽管查询在查询格式中工作正常但在运行服务器时无法正常工作。我的查询

Select * 
from "FF"."Rpt_vEventReportpart1" a 
where a."CallType" is null or a."CallType"= (COALESCE(?,a."CallType"))

1 个答案:

答案 0 :(得分:1)

只是一个猜测。试试吧:

where 
    a."CallType" is null or 
    ? is null or
    a."CallType" = ?