Answers for "postgres value if null"

SQL
2

postgresql if null then 0

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

ifnull postgres

SELECT coalesce(column, 1)
Posted by: Guest on May-21-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language