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: Multiple Embedded SQL statements in one function

Re: Multiple Embedded SQL statements in one function

From: Alan D. Mills <alanm_at_uk.europe.mcd.mot.com>
Date: Fri, 13 Nov 1998 11:36:08 -0000
Message-ID: <72h5hi$9hc$1@schbbs.mot.com>


No problem at all. I do it all the time.

Somthing like:

static void Myfunct(void)
{

   EXEC SQL
   SELECT 'X' INTO :Myhost var FROM dual;

   EXEC SQL
   SELECT 'Y' INTO :AnotherHostVar FROM dual;

   return;
}

is ok to do in Pro*C

--
Alan D. Mills

Teresa Mah wrote in message <364A06E8.90AFB6CB_at_home.com>...
>Hi,
>
>Does anyone know if it's okay to have more than one embedded SQL
>statement in a C function? (that is, besides commit or rollback, i.e.
>multiple inserts, or multiple selects)
>
>Thanks.
>
>Teresa
Received on Fri Nov 13 1998 - 05:36:08 CST

Original text of this message

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