sql - PostgreSQL- comparing boolean values which may be null -


when comparing boolean values in postgresql use comparison operator =. when want check against matching null values should use?

i have used not distinct when comparing integers have match if both null correct way go when dealing boolean values?

i have used not distinct when comparing integers have match if both null corract way go when dealing boolean values?

i see no reason why not. :)

x not distinct y short-hand (x = y) or (x null , y null)


Comments