如何将参数放入连接到Oracle Database 11g的SSRS 2008 R2中的查询中

Abr*_*uck 2 oracle parameters reporting-services

将参数放入查询会收到以下错误:

"ORA-01036: illegal variable name/number"
Run Code Online (Sandbox Code Playgroud)

查询是:

select * from t_accounts where account_number = @ReportParamter1
Run Code Online (Sandbox Code Playgroud)

没有where子句,查询运行正常

有任何想法吗?

感谢名单!

亚伯拉罕

O. *_*nes 7

Oracle希望其绑定参数用冒号表示,而不是@符号.所以你要

...where account_number = :ReportParamter1
Run Code Online (Sandbox Code Playgroud)