Important
Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.
COALESCE
On this page
The COALESCE() function returns the first non-NULL value for a given list of values.
Syntax
COALESCE ( val, [val, [val ...]])Arguments
-
val: any object
Return Type
Return the first non-NULL value in the list.
Examples
SELECT COALESCE(NULL, NULL, 1, 2, 3);
+-------------------------------+
| COALESCE(NULL, NULL, 1, 2, 3) |
+-------------------------------+
| 1 |
+-------------------------------+Last modified: