How to append a string to where clause in APEX Interactive Report SQL

依然范特西╮ 提交于 2019-12-07 03:50:33

P5_NEW (well, why not P5_WHERE?) should be a Text field with "Submit when Enter pressed" set to YES. It should contain the whole WHERE clause, including the WHERE keyword. If you put it as you did, you'll get the ORA-00936 missing expression error.

Query would then look like this:

select * 
from employees
&P5_WHERE.    --> pay attention! Ampersand (&) followed by field name
              --> followed by a dot (.)

What next? Nothing ... run the page & enjoy. If you enter something like WHERE department_id = 10 into the P5_WHERE field and hit Enter key, output should change.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!