You are on page 1of 2

DDL – Data defition language

Add

Drop table

Create table

Rename column

Add column

If I wan t o alter something into SQL table so I can use this command as guided..

1.Alter table employees Add column contact integer (10) ;

2.Add column

3.Rename column

Alter table Hexaware rename column last_name to contact_Details

4.Drop table means deleting the table For ex- drop table employees;

Drop table Hexaware;

DML-Data manipulated language

Update , insert , delete ---It helps increate g the table with the help of basic functions.

Insert into employees (emp_id,first_name,last_name,salary)


values(‘100073543’,’Abhsihek’,’Soni’,’50000’)

https://youtu.be/1dWCqjhvF58

If we want to update or change something in the table we can do this by following command

Update employees set last_name=’Jaiswal’ where emp_id=’101’

If I want to delete something from table records

Delete from employees where emp_id in (‘101,102’);

If we wan t to grant and revoke the permissions so we can do this following

GRANT <Priveiege List> ON <Relation Name> to <User>


REVOKE<Priviege List> ON<Relation Name> to <User>

You might also like