Insert, Delete & Update Operations
Insert, Delete & Update Operations
-- SQL commands that deals with the manipulation of data present in the database
belong to DML or Data Manipulation Language.
-- this includes various SQL Statements such as:
select * from A;
select * from B;
select * from B;
delete from B
where name = (select
name from A
where name = 'Bhavesh');
select * from B;
select * from B;
update B
set name = 'Rohit'
where name in (select distinct name
from A
where name like 'B%');
select * from B;
update B
set name = 'KASHISH'
where name is NULL;
-- be cautious while using UPDATE and DELETE operations - MAKE SURE TO USE WHERE
STATEMENT
update B
set name = 'XYZ';