Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

POWERPOINT

PRESENTATION
DML COMMANDS

ON

MADE BY ARMAAN AND


REHAN

* TYPES OF DML COMMANDS


Editing Command
Insert
Update
Delete

Review command
select

1.INSERT COMMAND
Insert is used to add a new row to a table
Can add one or more rows
Syntax varies depanding on numbers

Insert syntax for one row


Insert into table name
Values(value list)

*EXAMPLE OF INSERT
COMMAND

Insert into dept


values(10,"ACCOUNTING","NEW DELHI);

2.Update command
.update is used to change the an existing row.
.Can change one,some or all rows in a table or view
.a where clause is used to specify specific rows to change

UPDATE SYNTAX
Update tablesname
set field1=value1
[Where condition]

*Example of update command


*increase the stipend by 200 whose subject is ip
update result

set stipend = stipend+200


where subject=ip;

3.DELETE COMMAND
Delete

command is used to removes one or more


rows from a table

no field list is included

may specify which row to remove by adding by

adding where clause

* DELETE SYNTAX
Delete from tablename
[where condition]

Not included a where clause removes all rows


From a table

* EXAMPLE OF DELETE
COMMAND

Delete from dept


Where deptno=60;

*delete from dept;

K
N
A
TH
U
YO

You might also like