Beruflich Dokumente
Kultur Dokumente
that isnt NULL. COALESCE will accept two or more parameters but is most
often called with exactly two: a column name and a value to be used when the
column value is NULL. Here is an example that shows how non-NULL values
can be substituted for NULL values in a table:
CREATE TABLE t1 (
key_1 UNSIGNED BIGINT NOT NULL,
non_key_1 VARCHAR ( 100 ) NULL,
non_key_2 TIMESTAMP NULL,
PRIMARY KEY ( key_1 ) );