



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




DROP object object_name
Examples: DROP TABLE table_name; table_name : Name of the table to be deleted.
DROP DATABASE database_name; database_name : Name of the database to be deleted.
TRUNCATE TABLE table_name; table_name : Name of the table to be truncated. DATABASE name - student_data
ALTER TABLE table_name ADD (Columnname_1 datatype, Columnname_2 datatype,
Columnname_n datatype);
ALTER TABLE table_name DROP COLUMN column_name;
ALTER TABLE table_name MODIFY column_name column_type; (We use this for Now)
ALTER TABLE table_name ALTER COLUMN column_name column_type;
ALTER TABLE Student ADD (AGE number(3),COURSE varchar(40));
ALTER TABLE Student MODIFY COURSE varchar(20);
SELECT column1,column2 FROM table_name column1 , column2 : names of the fields of the table table_name: from where we want to fetch
SELECT * FROM table_name;
SELECT ROLL_NO, NAME, AGE FROM Student;