Professional Documents
Culture Documents
DML Commands
DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify,
delete, insert and update data in database. Examples: SELECT, UPDATE, INSERT statements.
DDL is abbreviation of Data Definition Language. It is used to create and modify the
structure of database objects in database.
SELECT – used to view the contents of the table.
INSERT – used to insert content to the table.
DELETE – used to delete rows.
UPDATE – used to update existing values of the column.
STEPS
1. CREATE TABLE stu (sno number(1), name char(10), gender char(5), cgpa varchar(4),
out char(4));
2. A. INSERT INTO stu (sno,name,gender,cgpa,out) values (‘1’, ‘abc’, ‘M’, ‘10’, ‘PASS’);
B. INSERT INTO stu (sno,name,gender,cgpa,out) values (‘2’, ‘def’, ‘F’, ‘9’, ‘PASS’);
C. INSERT INTO stu (sno,name,gender,cgpa,out) values (‘3’, ‘mno’, ‘M’, ‘9.4’, ‘PASS’);
D. INSERT INTO stu (sno,name,gender,cgpa,out) values (‘4’, ‘pqr’, ‘F’, ‘3’, ‘FAIL’);
E. INSERT INTO stu (sno,name,gender,cgpa,out) values (‘5’, ‘xyz’, ‘M’, ‘10’, ‘PASS’);
Table truncated.
SQL>SELECT * FROM student;
no rows selected
Table dropped.