Answers for "postgres check for null"

SQL
3

postgresql if null then 0

select coalesce(avg(bar), 0) from foo;
Posted by: Guest on September-18-2020
2

postgres set null

UPDATE table1
SET column_a IS NULL
WHERE column_b = 'XXX';
Posted by: Guest on June-11-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language