Coalesce in Postgres

Posted by yhuang
Public (Editable by Users)

Returns the first non null value.

SQL
None
Edit
SELECT COALESCE (1, 2);         // 1
SELECT COALESCE (NULL, 2 , 1);  // 2