MySQL Forums
Forum List  »  French

Re: Utilisation variable utilisateur dans un 'in'
Posted by: Huu Da Tran
Date: February 25, 2008 05:28PM

set @product='790,797';
select * from produit where ordre_produit in (@produit);

est l'équivalent de:

select * from produit where ordre_produit = '790,797';

Parce que c'est une chaîne de caractères et non une liste de possibilités. Je ne pense pas qu'il soit possible de définir une variable autre que de type texte.

Désolé,

H.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Utilisation variable utilisateur dans un 'in'
2866
February 25, 2008 05:28PM


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.