Checking for null in Postgresql


/ Published in: SQL
Save to your folder(s)

Checking for null value and assigns a default value if the field is null


Copy this code and paste it in your HTML
  1. SELECT COALESCE(age,0) FROM employee

Report this snippet


Comments


You need to login to view comments.