Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Result of a function executing a command

Re: Result of a function executing a command

From: Alexander I. Doroshko <aid_at_grant.kharkov.ua>
Date: 26 Aug 1999 07:54:32 GMT
Message-ID: <01beef97$cb413120$190114c1@sister.grant.UUCP>


A solution for enemies of PL/SQL

Antony Giblin <agiblin_at_software-resource.com> wrote in article <935592270.2891.0.nnrp-02.c2de09a4_at_news.demon.co.uk>...
: Does anyone know whether it is possible to execute a command in
SQL*Plus,
: based on a result
: of a function. For example :
:
: SQL > VAR result VARCHAR2
: SQL > EXEC :result::=PROCEDURE_10111 (parameters);

col prog nopri new_v prog
set pau off
select decode(:result, 'equality test', 'PROCEDURE_2', 'null') prog  from dual;
exec &&prog

: SQL > IF :result='equality test' then EXEC PROCEDURE 2; << i.e. can
this be
: done in Oracle 7.3 ???
:
: If anyone is also trying to do the same, please let me know and we
may be
: able to help each other !!

--
 Alexander I.Doroshko, aid_at_grant.kharkov.ua

Received on Thu Aug 26 1999 - 02:54:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US