SELECT * FROM emp;
Attention: Never manipulate data in the base table of a read-only snapshot.
You cannot issue any INSERT, UPDATE, or DELETE statements when using a read-only snapshot; if you do, an error is returned. Although INSERT, UPDATE, and DELETE statements can be issued against the base table for a snapshot, they can corrupt the snapshot. Updates are allowed on the master table only, which must then be refreshed to update the snapshot. If you want to alter the snapshot, you must create it as an updatable snapshot as described in Chapter 5.
CREATE VIEW sales_dept AS SELECT ename, empno FROM emp WHERE deptno = 10;