Steve,

    Is that 'inside the block' or 'outside the block'?  I assume inside. 
therefore try:

accept var_a char prompt 'Insert your variable'

declare
  local_var varchar2(100) := &var_a;
begin
 ....
end;
/

Dick Goulet

____________________Reply Separator____________________
Author: "Steven Hovington" <[EMAIL PROTECTED]>
Date:       9/18/2001 9:30 AM

I'm am trying to use an accept statement to grab some info from the user in
an SQL script,
and then use that in a subsequent PL/SQL block.  I can do the Accept ok, but
can't sem to
access the variable onside the block.  Can anyone point me in the right
direction?

Thanks in advance.


Steven H.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steven Hovington
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to