Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:Accept statement
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" <steven.hovington_at_procession.com> 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: steven.hovington_at_procession.com
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: ListGuru_at_fatcity.com (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).
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: ListGuru_at_fatcity.com (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). Received on Tue Sep 18 2001 - 17:45:55 CDT
![]() |
![]() |