问题
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