【发布时间】:2019-01-29 15:25:59
【问题描述】:
我正在使用 oracle 报告,但“全选”有问题,这是我的查询
SELECT * FROM company A, seller B
WHERE a.id = b.id
&(P)Company_id
我在 oracle 报告中的 after 参数中使用了
begin
if (:(V)Company_id is not null and :(V)Company_id<> '0')
:(P)Company_id:= ' and a.id ='||:(V)Company_id;
end if;
return (true)`
end;
如果 id 都是像 000123 这样的数字,则可以正常工作,但如果像 ([L]00123) 这样的 id 则结果是显示所有数据。在我的词法参数方面需要帮助。
【问题讨论】:
-
(V)Company_id中的(V)是什么? ((P)也是如此)。 -
参数应该是P,所以变成了PCompany_id,而变量的V变成了VCompany_id。
标签: oracle oraclereports