Ver Mensaje Individual
  #2  
Antiguo 13-06-2008
Avatar de TOPX
TOPX TOPX is offline
Miembro
 
Registrado: may 2008
Ubicación: Bogotá
Posts: 527
Reputación: 16
TOPX Va camino a la fama
Buenas santiago14,

"The exclusive OR (which evaluates to true if any single condition is true but false if all conditions are true) is not supported."
Pág. 399. The Firebird Book.

Entonces, como en FB no se tiene el operador XOR, podría realizar la operación equivalente:

Código SQL [-]
and (
  (c.nombre_consig LIKE '%'||:nombreProveedor||'%' AND c.nombre_consig IS NOT NULL) OR
  (c.nombre_consig NOT LIKE '%'||:nombreProveedor||'%' AND c.nombre_consig IS NULL)
)

O también, si lo prefiere, puede construir/descargar una UDF para ello.

--
"constructive mind, destructive thoughts"

Última edición por TOPX fecha: 13-06-2008 a las 22:22:34.
Responder Con Cita