Re: il cursore non interpreta la sintassi
Posted by:
max dix
Date: December 01, 2008 09:58AM
quando dico stampare la query vuol dire che devi creare del codice che ti generi il testo della select cosi come lo vorresti con l'utilizzo dei due cursori senza eseguirlo.
dentro il ciclo...
SELECT @dinalmic ;
PREPARE s1 FROM @dinalmic;
SET @WHERE_VAL=VALORE FILTRO
SET @SET_VAL=SECONDO_VAL
EXECUTE s1 USING @WHERE_VAL,@SET_VAL
non ti ho copiato tutta la store procedure...ho fatto una prova con i cursori e a me funziona.
Subject
Views
Written By
Posted
6356
November 26, 2008 05:29PM
3499
November 28, 2008 05:07AM
3347
November 28, 2008 05:35AM
3515
November 28, 2008 07:28PM
3562
November 30, 2008 09:52AM
3454
December 11, 2008 06:31AM
3429
January 15, 2009 04:16AM
Re: il cursore non interpreta la sintassi
3432
December 01, 2008 09:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.