0% found this document useful (0 votes)
18 views3 pages

DML

Uploaded by

Hussain
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)
18 views3 pages

DML

Uploaded by

Hussain
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/ 3

Dml (data manipulation language) :-

1. Insert :-
Insert statement is used to insert the data inside the
tables.
Syntax :-
Insert into tablename values (data);
Ex :-
Insert into emp520 values (101,’raja’,10);

2. Update :-
Update statement is used for updating data inside
the tables.
Syntax:-
Update tablename
Set columnname=data;

Ex :-
Update emp520
Set deptno=20
Where ename=’raja’;
3. Delete :-
Delete statement is used for deleting the data inside
the table.
Syntax :-
Delete tablename
Where condition;

Ex :-
Delete emp520
Where ename=’fruity’;

Dtl :- (data transaction language) / tcl (transaction


control language)
1. Commit :-
Commit statement is used to save the data inside
the database permanently.
Syntax :-
Commit;
2. Save point :-
Save point is used to save the data at multiple point
for temporarily.
Syntax :-
Savepoint name;
3. Rollback :-
Roll back statement is used to go back to the
particular saved point.
Syntax:-

Rollback to name;

Dcl (data control language) :-


1. Grant :-
Grant statement is used for giving the permissions to
the users to access the tables.
Syntax :-
Grant privilege name on tablename to username;

2. Revoke :-
Revoke statement is used to take back the given
permission.
Syntax :-
Revoke privilege name on tablename from
username;

You might also like