Examples

The following example adds a new column to scott’s table emp:

ALTER TABLE scott.emp
   ADD (bonus NUMBER(7,2)

The following example increases the size of the bonus column to 9 digits:

ALTER TABLE scott.emp
   MODIFY (bonus NUMBER(9,2)

The following example adds a primary key constraint to scott’s emp table:

ALTER TABLE scott.emp
   MODIFY (empno CONSTRAINT pk_emp PRIMARY_KEY)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.44.121