Calling a SP from Curosor loop

Поиск
Список
Период
Сортировка
Искать

Calling a SP from Curosor loop

От:
satishchandra999@gmail.com
Дата:
I have SP, which has a cursor iterations. Need to call another SP for
every loop iteration of the cursor. The pseudo code is as follows..

Create proc1 as
Begin

Variable declrations...

declare EffectiveDate_Cursor cursor for
select field1,fld2 from tab1,tab2 where tab1.effectivedate

Re: Calling a SP from Curosor loop

От:
"Merlin Moncure" <mmoncure@gmail.com>
Дата:
On 29 Jun 2006 10:00:35 -0700, satishchandra999@gmail.com
 wrote:
> I have SP, which has a cursor iterations. Need to call another SP for
> every loop iteration of the cursor. The pseudo code is as follows..

i would suggest converting your code to pl/pgsql and reposting.  that
look awfully like t-sql stored procedure, you may as well be saying,
'gobble de gook bak wakka bakka bak!', got it? :-)

(aside: pg/pgsql functions support nested calls, recursion, etc and
should provide no problems when properly written).

merlin
FAQ