Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/04/2007, 22:40
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años
Puntos: 25
Re: ayuda con esta consulta

Entonces mételos en 3 variables:

DECLARE @uno Int, @dos Int, @tres Int
SET @uno = 10
SET @dos = 20
SET @tres = 30

SELECT ....
WHERE campo IN (@uno, @dos, @tres)
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche