Bonjour,

Lorsque je fais ceci :

Declare @pslstAGENCE As VarChar(255)

Set @pslstAGENCE = '001,002'

select * from [scandium_].auth.dbo.agence where id in (@pslstAGENCE)
Cela ne fonctionne pas mais lorsque je fais ceci :

select * from [scandium_].auth.dbo.agence where id in (001,002)
OU
select * from [scandium_].auth.dbo.agence where id in ('001','002')
Ca fonctionne et pourtant c'est exactement la même chose non?

Le champ ID est de type varchar(5)

Merci d'éclaire ma petite lanterne


Portekoi