update "notifications"
set "is_read" = 1,
"updated_at" = 2023 - 02 - 01 12:26:05
where "notifications"."id" in ( select id from "notifications" where “client_id” = 126473 and "notifications"."client_id" is not null order by id for update);
UPDATE заявки
SET оператор = @current_operator
WHERE ид = (SELECT ид FROM заявки where оператор IS NULL ORDER BY дата_заявки ASC limit 1)