Explain about Data Manipulation Language
It explains about:
Explain about INSERT command
create table sales (company varchar(10),
Quantity int, price int, Sector varchar(10))
Insert into Sales values('Apple',1100,110,'south')
Insert into Sales values('Banana',1200,210,'South')
Insert into Sales values('Orange',1300,310,'North')
Insert into Sales values('Papaya',1400,410,'East')
Insert into Sales values('Grapes',1500,510,'West')
select * from sales
drop table sales
Inserting NULL values:
Explain about UPDATE command in DML
We can update all rows at a time or specified rows with the help of WHERE clause
create table sales (company varchar(10),Quantity int, price int,Sector varchar(10))
Insert into Sales values('Apple',1100,110,'south')
Insert into Sales values('Banana',1200,210,'South')
Insert into Sales values('Orange',1300,310,'North')
Insert into Sales values('Papaya',1400,410,'East')
Insert into Sales values('Grapes',1500,510,'West')
Update sales set price = 50
All the rows of PRICE has been udpated to 50
Explain about DELETE command in DML
create table sales (company varchar(10),Quantity int, price int,Sector varchar(10))
Insert into Sales values('Apple',1100,110,'south')
Insert into Sales values('Banana',1200,210,'South')
Insert into Sales values('Orange',1300,310,'North')
Insert into Sales values('Papaya',1400,410,'East')
Insert into Sales values('Grapes',1500,510,'West')
Delete from sales where Item = 'Apple'
All records got deleted from sales table