salix/db/changes/230401/00-updateIsToBeMailed.sql

7 lines
143 B
SQL

UPDATE vn.client
SET isToBeMailed = FALSE
WHERE
mailAddress is NULL
AND email is NULL
AND isToBeMailed = TRUE;