UPDATE [top(x)] <объект>
SET <присваивание1 [, присваивание2, ...]>
[WHERE <условие>];
UPDATE tbl_books SET price = 0 WHERE quantity = 0;
UPDATE PersonalInfo SET street = 'Лизюкова', city = 'Воронеж' WHERE name = 'Котёнок';
UPDATE temp a SET
deptno = (SELECT deptno FROM dept WHERE loc = 'BOSTON'),
(sal, comm) = (
SELECT 1.1*AVG(sal), 1.5*AVG(comm)
FROM temp b
WHERE a.deptno = b.deptno
)
WHERE deptno IN (SELECT deptno FROM dept WHERE loc = 'DALLAS' OR loc = 'DETROIT');