Update a TEMPORARY TABLE and check the table it based on
create table employee(
emp_no integer primary key
,salary number(3)
,title varchar2(20)
);
CREATE GLOBAL TEMPORARY TABLE temp_emp
ON COMMIT PRESERVE ROWS
AS SELECT * FROM employee;
UPDATE temp_emp SET salary = 99
WHERE title = 'Designer';
select * from employee where title = 'Designer';
SELECT salary FROM temp_emp
WHERE title = 'Designer';
drop table temp_emp;
drop table employee;
Related examples in the same category