3. SQL - Data Manipulation Language
3. SQL - Data Manipulation Language
WELCOME TO SQL
SESSION
Address
ARC Technologies and Institute ,NIRMAN ALTIUS, 1,
Mundhwa - Kharadi Rd, behind RADISSON BLU,
Pandhari Nagar, Kharadi, Pune, Maharashtra 411014 9606060871 / 9606060872
ARC Technologies & Institutions DATA MANIPULATION LANGUAGE
INSERT
UPDATE
DELETE
9606060871 / 9606060872
ARC Technologies & Institutions
2. If you are adding values for all the columns of the table, you do not need to specify the column names in the SQL query.
However, make sure the order of the values is in the same order as the columns in the table. Here, the INSERT INTO
syntax would be as follows:
9606060871 / 9606060872
ARC Technologies & Institutions
Emaple 1 : Write a query to add following data into the Employee table.
9606060871 / 9606060872
ARC Technologies & Institutions
Department
9606060871 / 9606060872
ARC Technologies & Institutions Update
2) Update
The Update statement is used to modify the existing records in a table.
Syntax : UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
Example 2 : Write a Query to update all the employee designation as Manager for those
who are getting salary more then 4000;
Note : If we wont provide where Clause all the records will be updated.
9606060871 / 9606060872
ARC Technologies & Institutions
3) Delete
The delete statement is used to delete existing records in a table.
Syntax : DELETE FROM table_name
WHERE condition;
Example 2 : Write a Query to delete all the employee details whose designation is Manager.
Note : If we wont provide where Clause all the records will be deleted.
9606060871 / 9606060872
ARC Technologies & Institutions
9606060871 / 9606060872