“MSSQL Coalesce” Kode Jawaban

Coalesce SQL

Return the first non-null value in a list:

SELECT COALESCE(NULL, NULL, NULL, 'W3Schools.com', NULL, 'Example.com');

-- output: W3Schools.com
Lokesh003

MSSQL Coalesce

SELECT COALESCE(NULL, NULL, NULL, 'HELLO WORLD', NULL, 'Example.com');

RESULT
'Hello World' --> First value not null
Parthenoun

Jawaban yang mirip dengan “MSSQL Coalesce”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya