Snippet Name: Replace a NULL with a given value. Description: Replace a NULL with a given value. Comment: (none) Language: MYSQL Highlight Mode: MYSQL Last Modified: March 01st, 2009
Description: Replace a NULL with a given value.
SELECT age, name, COALESCE(city, 'No City Listed') FROM users