Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/11/2006, 17:12
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 10 meses
Puntos: 25
Por cierto... recuerda que para evaluar NULL no lo haces con "=NULL" sino con "IS NULL"

SELECT * FROM TABLA
WHERE @param IS null or campo1 = @param
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche