Beruflich Dokumente
Kultur Dokumente
2.Add a new column PINCODE with not null constraints to the existing table DEPT.
3.All constraints and views that reference the column are dropped automatically along
with all column.
6. Delete table.
desc dept;
table created.
desc dept;
T abl e Col umn Dat a T ype Lengt h Pr eci si on Scal e Pr imar y Key Null abl e Def aul t Comment
DEPT DEPTNO Number - - 0 1 - - -
DNAME Varchar2 10 - - - - -
LOC Varchar2 10 - - - - -
desc department;
T abl e Col umn Dat a T ype Lengt h Pr eci si on Scal e Pr imar y Key Null abl e Def aul t Comment
DNAME Varchar2 10 - - - - -
LOC Varchar2 10 - - - - -
2.Add a new column PINCODE with not null constraints to the existing table DEPT.
desc department;
T abl e Col umn Dat a T ype Lengt h Pr eci si on Scal e Pr imar y Key Null abl e Def aul t Comment
DNAME Varchar2 10 - - - - -
LOC Varchar2 10 - - - - -
PINCODE Number - 6 0 - - - -
3.All constraints and views that reference the column are dropped automatically along
with all column.
desc department;
T abl e Col umn Dat a T ype Lengt h Pr eci si on Scal e Pr imar y Key Null abl e Def aul t Comment
DNAME Varchar2 10 - - - - -
PINCODE Number - 6 0 - - - -
Dat a Lengt Pr eci si o Scal Pr imar y Null abl Def aul Comme
T abl e Col umn T ype h n e Key e t nt
DEPARTME
DEPTNO Number - - 0 1 - - -
NT
DEPT_NAM
Varchar2 10 - - - - -
E
PINCODE Number - 6 0 - - - -
table created.
desc dept1;
T abl e Col umn Dat a T ype Lengt h Pr eci si on Scal e Pr imar y Key Null abl e Def aul t Comment
DNAME Varchar2 10 - - - - -
LOC Char 10 - - - - -
6. Delete table.
drop table department;
Table dropped.
desc department;
Object to be described could not be found.