MySQL Forums
Forum List  »  Italian

Re: Funzioni passaggio di parametri
Posted by: Gavin Towey
Date: April 21, 2010 06:23PM

Ciao Fabrizio,

E' necessario usare PREPARE come questo:

SET @sql := CONCAT('SELECT * FROM ', @tableName);
PREPARE mySt FROM @sql;
EXECUTE mySt;

buona fortuna!

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Funzioni passaggio di parametri
2560
April 21, 2010 06:23PM


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.