Beruflich Dokumente
Kultur Dokumente
Date:
AIM:
To write a query with a function of DDL commands such as create , alter , drop.
PROGRAM:
CREATE TABLE:
Table created.
ALTER TABLE:
PRIMARY KEY:
This sql command is used to find a unique value.
SQL> alter table student add(primary key(rollno));
Table altered.
SQL> desc student
Name Null? Type
----------------------------------------- -------- ----------------------------
ROLLNO NOT NULL NUMBER(3)
NAME VARCHAR2(15)
ADDRESS VARCHAR2(20)
PHNO NUMBER(10)
AGE NUMBER(2)
RENAME COLUMN:
DELETE COLUMN:
Table altered.