SlideShare a Scribd company logo
1Using ORACLE®Data Manipulation Language(Populating our sample database)  and Transaction Control Language
2DATA DEFINATION LANGUAGEDML is used for manipulation the data contained in a table.Just as how DDL commands can be used to CREATE,ALTER and DROP objects DML can be used to INSERT , UPDATE and DELETE data from the objects.DML commands only affect the data and not the structure of the table.DML contains 3 commands:INSERT 	: Used to insert a new record into the table.UPDATE	: Used to update the records already inserted into the table.DELETE 	: Used to delete records already inserted into the table.
3INSERT COMANDThe INSERT command is used to insert records into the table.The basic syntax of the INSERT command is :INSERT INTO TABLE_NAME(colm1_name,…[colmn_name])      VALUES ( colm1_val,…[colmn_val]);EXAMPLE : INSERT INTO InfoTable(name,age,phone) VALUES (‘steve’,50,9988776655);The above syntax is used when we only want to insert specified column values.If we are inserting a row containing all the columns value or intend to insert NULL values in remaining columns we can discard the column list after table name as:INSERT INTO TABLE_NAME VALUES(value…[value]..[NULL]);The NULL keyword is used to insert a null values into the column.
4UPDATE COMANDThe UPDATE command is used to modify the records that have been already inserted into the table. We use a WHERE clause to target a particular set of columns to be updated in absence of which all rows in the table will be updated.SYNTAX:UPDATE  TABLE_NAMESET	 column = new_value,….	We can update multiple columns at a time.             …..[column = new value]WHERE    	 [condition ….];		WHERE condition limits the rows being updated.EXAMPLE :UPDATE InfoTable SET	age = 40 ,	phone = 9988000000WHERE 	name = ‘steve’;
5UPDATE USING SUBQUERIESWe can update the value of a row to be set to values of another row using subqueries :SYNTAX:UPDATE TABLE_NAMESET 	column = [subquery]…            …..column = valueWHERE 	(condition);EXAMPLE :UPDATE InfoTableSET 	phone= (SELECT phone FROM InfoTable  WHERE name = ‘bill’)WHERE	age = 40;
6DELETE COMANDThe DELECT command can be used to delete a set of records that are inserted in a column.A WHERE clause is used to narrow the set of rows to be deleted in absence of which all the rows in the table will be deleted. To delete all rows we can also use the TRUNCATE command.SYNTAX:DELETE  [FROM] TABLE_NAMEWHERE (condition..);EXAMPLE:DELETE FROM InfoTableWHERE name = ‘bill’;DELETE FROM InfoTable;Entire table contents deleted
7TRANSACTION CONTROL LANGUAGEA TRANSACTION is a set of DML statements that cause a consistent change on data or it can be a single DDL / DCL command .The transaction begins when a DML command is entered and ends when COMMIT or ROLLBACK occurs. Since DCL and DDL commands are committed as soon as been entered only 1 such command is in a transaction.TCL statements are used to control transactions.There are three TL commands:
THANK YOU8THANK YOU FOR VIEWING THIS PRESENTATIONFOR MORE PRESENTATIONS AND VIDEOS ON ORACLE AND DATAMINING ,please visit:  www.dataminingtools.net

More Related Content

PPTX
SQL(DDL & DML)
PPTX
Commands of DML in SQL
PPT
Sql basics and DDL statements
PPTX
Oracle: DDL
PPT
Sql dml & tcl 2
SQL(DDL & DML)
Commands of DML in SQL
Sql basics and DDL statements
Oracle: DDL
Sql dml & tcl 2

What's hot (19)

PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
PPTX
8. sql
PPT
SQL Tutorial - How To Create, Drop, and Truncate Table
ODP
DOCX
Ddl commands
PPTX
DDL,DML,SQL Functions and Joins
PPTX
Creating database using sql commands
PPTX
Oracle Database DML DDL and TCL
PPT
SQL DDL
PDF
Sql delete, truncate, drop statements
PPTX
Oracle SQL DML Statements
PPTX
Database Management - Lecture 2 - SQL select, insert, update and delete
PPT
Sql DML
PPTX
SQL - DML and DDL Commands
PPTX
SQL-Alter Table, SELECT DISTINCT & WHERE
PDF
Database Systems - SQL - DDL Statements (Chapter 3/2)
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
8. sql
SQL Tutorial - How To Create, Drop, and Truncate Table
Ddl commands
DDL,DML,SQL Functions and Joins
Creating database using sql commands
Oracle Database DML DDL and TCL
SQL DDL
Sql delete, truncate, drop statements
Oracle SQL DML Statements
Database Management - Lecture 2 - SQL select, insert, update and delete
Sql DML
SQL - DML and DDL Commands
SQL-Alter Table, SELECT DISTINCT & WHERE
Database Systems - SQL - DDL Statements (Chapter 3/2)
Ad

Similar to Oracle : DML (20)

PPTX
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
PPT
PPT
Les09[1]Manipulating Data
PPTX
introdution to SQL and SQL functions
PPTX
SQL-SHORT-NOTES.pptx
PPTX
Unit - II.pptx
PPT
Sql DML
PPT
plsql Les08
PDF
BCS4L1-Database Management lab.pdf
PDF
sql all type of commands in this power point presentation
PDF
COMMANDS PPT(1).pdf
PDF
ppt.pdf
PPTX
DBMS UNIT-2.pptx ggggggggggggggggggggggg
DOCX
Oracle 11g SQL Overview
PPTX
SQL commands
PPTX
BWU_BTA_22_403_Aishika Majumdar and all about cse
PPTX
Ddl & dml commands
PPTX
Database Management System PART- II.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
Les09[1]Manipulating Data
introdution to SQL and SQL functions
SQL-SHORT-NOTES.pptx
Unit - II.pptx
Sql DML
plsql Les08
BCS4L1-Database Management lab.pdf
sql all type of commands in this power point presentation
COMMANDS PPT(1).pdf
ppt.pdf
DBMS UNIT-2.pptx ggggggggggggggggggggggg
Oracle 11g SQL Overview
SQL commands
BWU_BTA_22_403_Aishika Majumdar and all about cse
Ddl & dml commands
Database Management System PART- II.pptx
Ad

More from oracle content (13)

PPTX
Oracle: Procedures
PPTX
Oracle: PLSQL Introduction
PPTX
Oracle: Programs
PPTX
Oracle: Commands
PPTX
Oracle: Joins
PPTX
Oracle:Cursors
PPTX
Oracle: Control Structures
PPTX
Oracle: Dw Design
PPTX
Oracle: Basic SQL
PPTX
Oracle Warehouse
PPTX
Oracle: Functions
PPT
Oracle: New Plsql
PPTX
Oracle: Fundamental Of Dw
Oracle: Procedures
Oracle: PLSQL Introduction
Oracle: Programs
Oracle: Commands
Oracle: Joins
Oracle:Cursors
Oracle: Control Structures
Oracle: Dw Design
Oracle: Basic SQL
Oracle Warehouse
Oracle: Functions
Oracle: New Plsql
Oracle: Fundamental Of Dw

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Cloud computing and distributed systems.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25 Week I
MYSQL Presentation for SQL database connectivity
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology

Oracle : DML

  • 1. 1Using ORACLE®Data Manipulation Language(Populating our sample database) and Transaction Control Language
  • 2. 2DATA DEFINATION LANGUAGEDML is used for manipulation the data contained in a table.Just as how DDL commands can be used to CREATE,ALTER and DROP objects DML can be used to INSERT , UPDATE and DELETE data from the objects.DML commands only affect the data and not the structure of the table.DML contains 3 commands:INSERT : Used to insert a new record into the table.UPDATE : Used to update the records already inserted into the table.DELETE : Used to delete records already inserted into the table.
  • 3. 3INSERT COMANDThe INSERT command is used to insert records into the table.The basic syntax of the INSERT command is :INSERT INTO TABLE_NAME(colm1_name,…[colmn_name]) VALUES ( colm1_val,…[colmn_val]);EXAMPLE : INSERT INTO InfoTable(name,age,phone) VALUES (‘steve’,50,9988776655);The above syntax is used when we only want to insert specified column values.If we are inserting a row containing all the columns value or intend to insert NULL values in remaining columns we can discard the column list after table name as:INSERT INTO TABLE_NAME VALUES(value…[value]..[NULL]);The NULL keyword is used to insert a null values into the column.
  • 4. 4UPDATE COMANDThe UPDATE command is used to modify the records that have been already inserted into the table. We use a WHERE clause to target a particular set of columns to be updated in absence of which all rows in the table will be updated.SYNTAX:UPDATE TABLE_NAMESET column = new_value,…. We can update multiple columns at a time. …..[column = new value]WHERE [condition ….]; WHERE condition limits the rows being updated.EXAMPLE :UPDATE InfoTable SET age = 40 , phone = 9988000000WHERE name = ‘steve’;
  • 5. 5UPDATE USING SUBQUERIESWe can update the value of a row to be set to values of another row using subqueries :SYNTAX:UPDATE TABLE_NAMESET column = [subquery]… …..column = valueWHERE (condition);EXAMPLE :UPDATE InfoTableSET phone= (SELECT phone FROM InfoTable WHERE name = ‘bill’)WHERE age = 40;
  • 6. 6DELETE COMANDThe DELECT command can be used to delete a set of records that are inserted in a column.A WHERE clause is used to narrow the set of rows to be deleted in absence of which all the rows in the table will be deleted. To delete all rows we can also use the TRUNCATE command.SYNTAX:DELETE [FROM] TABLE_NAMEWHERE (condition..);EXAMPLE:DELETE FROM InfoTableWHERE name = ‘bill’;DELETE FROM InfoTable;Entire table contents deleted
  • 7. 7TRANSACTION CONTROL LANGUAGEA TRANSACTION is a set of DML statements that cause a consistent change on data or it can be a single DDL / DCL command .The transaction begins when a DML command is entered and ends when COMMIT or ROLLBACK occurs. Since DCL and DDL commands are committed as soon as been entered only 1 such command is in a transaction.TCL statements are used to control transactions.There are three TL commands:
  • 8. THANK YOU8THANK YOU FOR VIEWING THIS PRESENTATIONFOR MORE PRESENTATIONS AND VIDEOS ON ORACLE AND DATAMINING ,please visit: www.dataminingtools.net