CREATE TABLE t0 (v1 INT UNIQUE);
INSERT INTO t0 (v1) VALUES (1);
UPDATE t0 SET v1 = -1 WHERE v1 NOT IN (SELECT v1 FROM t0 INTERSECT SELECT v1 FROM t0 , (SELECT 1 FROM t0 AS v3) AS v2 ORDER BY v1 ,  LAST_VALUE (v1) OVER (ORDER BY NULL = 1) DESC);
