Examples
The following example creates a new table dept in scott’s schema:
CREATE TABLE scott.dept ( DEPTNO NUMBER(2) NOT NULL, DNAME VARCHAR2(14), LOC VARCHAR(15)) TABLESPACE USERS STORAGE (INIITIAL 40K NEXT 4K PCTINCREASE 0) PCTFREE 15
The following example creates a copy of scott’s emp table:
CREATE TABLE test_emp AS SELECT * FROM scott.emp
Get Oracle Database Administration: The Essential Refe now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.