Someone gave me this code:
select * from table where is_active
Is the is_active column, despite not having been set to anything, set to TRUE by default? Does the above query mean this:
select * from table where is_active = TRUE
It appears so, but couldn't find anything in the PostgreSQL documentation, so just wanted to confirm.
true:)whereclause expects a boolean (logical) expression.is_activeis one itself.is_active = TRUEis the same but more or less a tautalogy. Same withnot is_activeandis_active = FALSE