Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: help: Bind variables
On Wed, 06 Oct 1999 08:52:06 GMT, flap5_at_my-deja.com wrote:
>1. Can I use bind variables in normal SQL statements?
>
>2. If so, how can I declare the value of them?
Do you mean from sql*plus?
If yes then try this...
scott_at_8i> var e number
scott_at_8i> exec :e := 7788;
PL/SQL procedure successfully completed.
scott_at_8i> select ename from emp where empno = :e;
ENAME
scott_at_8i> select ename from emp where empno = :e;
ENAME
chris.
>
>Thanks
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
--
Christopher Beck
Oracle Corporation
clbeck_at_us.oracle.com
Reston, VA.
![]() |
![]() |