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

7 lines
147 B
SQL

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