Vergleichen von 2 Variablen

März 15, 2011 - Lesezeit: ~1 Minute

... ist kompliziert, wenn einer der Werte NULL sein kann. Ab Firebird 2.0 (FB2) ist es einfacher

A=B ?

alt:   A = B or (A is null and B is null)

FB2:   A is not distinct from B

A<>B

alt:   A <> B or (A is null and B is not null) or (A is not null and B is null)

FB2:   A is distinct from B

 

Tags: