0% found this document useful (0 votes)
31 views8 pages

SQL

Uploaded by

YO BOY'S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views8 pages

SQL

Uploaded by

YO BOY'S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SQL> create table emp_MCAR0140(empno number(6),ename varchar2(20)not null,branch

varchar2(10)not null,section varchar2(2),address varchar2(10));

SQL> describe emp_MCAR0140;

SQL> alter table emp_MCAR0140 add(experience number(2));

SQL> describe emp_MCAR0140;

SQL> alter table emp_MCAR0140 modify(branch varchar2(12));

SQL> alter table emp_MCAR0140 modify(branch varchar(13));

SQL> describe emp_MCAR0140;

SQL> create table dept_MCAR0140(deptno number(2) primary key,dname varchar2(10),address


varchar2(10));

SQL> describe dept_MCAR0140;

SQL> create table emp1_MCAR0140(ename varchar2(10),empno number(6) constraint ch


check(empno>100));

SQL> describe emp1_MCAR0140;

SQL> alter table emp_MCAR0140 drop column experience;

SQL> describe emp_MCAR0140;

SQL> truncate table emp_MCAR0140;

SQL> describe emp_MCAR0140;

SQL> drop table dept_MCAR0140;

SQL> describe dept_MCAR0140;

You might also like