Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Assigning Bind Variables to Substitution Variables in PL/SQL
SQL> variable this_dbis number
SQL> begin
2 select dbid 3 into :this_dbis 4 from v$database;
PL/SQL procedure successfully completed.
SQL> print this_dbis
THIS_DBIS
SQL> define mydbid=:this_dbis
SQL> print &mydbid
THIS_DBIS
SQL> But that's not quite what you intend ... time to hit the manuals again?
-- Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** Top posting relies guarantees I won't respond. ***Received on Sat Nov 05 2005 - 18:50:07 CST