MySQL Forums
Forum List  »  Italian

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.

Options: ReplyQuote


Subject
Views
Written By
Posted
6206
November 26, 2008 05:29PM
3421
November 28, 2008 05:07AM
Re: il cursore non interpreta la sintassi
3379
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.