How to substitute bind variable in pl/sql developer tool

穿精又带淫゛_ 提交于 2019-12-13 17:25:55

问题


I would like to run a SQL script in PL/SQL developer as following example.

variable vTest varchar2;
(exec/set) :vTest := 'ABC'
select :vTest from dual;
select :vTest ||'XYZ' from dual ;
select * from table  where columnname = :vTest;

回答1:


You can do this in a Test Window.

First do a

grant debug connect session to <schema> 

Then open a new Test window. Declare your bind variables at the bottom of the screen. You give them a name, a type and a value there.



来源:https://stackoverflow.com/questions/14887848/how-to-substitute-bind-variable-in-pl-sql-developer-tool

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