SlideShare a Scribd company logo
8
Most read
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

What's hot (20)

PPTX
User defined Function in SQL
baabtra.com - No. 1 supplier of quality freshers
 
PPT
04 Handling Exceptions
rehaniltifat
 
PPTX
Aggregate function
Rayhan Chowdhury
 
ODP
Sql commands
Balakumaran Arunachalam
 
PPT
Les01 (retrieving data using the sql select statement)
Achmad Solichin
 
PPTX
Sql subquery
Raveena Thakur
 
PPT
Using single row functions to customize output
Syed Zaid Irshad
 
PDF
SQL Functions and Operators
Mohan Kumar.R
 
PPT
Mysql
TSUBHASHRI
 
PPT
Using the set operators
Syed Zaid Irshad
 
PDF
SQL Overview
Stewart Rogers
 
PDF
Function arguments In Python
Amit Upadhyay
 
PDF
SQL Joins With Examples | Edureka
Edureka!
 
PPTX
SQL - DML and DDL Commands
Shrija Madhu
 
PPT
MYSQL Aggregate Functions
Leroy Blair
 
PPTX
Data Structures - Lecture 8 [Sorting Algorithms]
Muhammad Hammad Waseem
 
PPTX
Sql Basics And Advanced
rainynovember12
 
PPTX
Arrays In C Language
Surbhi Yadav
 
PPT
Restricting and Sorting Data - Oracle Data Base
Salman Memon
 
PPT
Sequences and indexes
Balqees Al.Mubarak
 
04 Handling Exceptions
rehaniltifat
 
Aggregate function
Rayhan Chowdhury
 
Les01 (retrieving data using the sql select statement)
Achmad Solichin
 
Sql subquery
Raveena Thakur
 
Using single row functions to customize output
Syed Zaid Irshad
 
SQL Functions and Operators
Mohan Kumar.R
 
Mysql
TSUBHASHRI
 
Using the set operators
Syed Zaid Irshad
 
SQL Overview
Stewart Rogers
 
Function arguments In Python
Amit Upadhyay
 
SQL Joins With Examples | Edureka
Edureka!
 
SQL - DML and DDL Commands
Shrija Madhu
 
MYSQL Aggregate Functions
Leroy Blair
 
Data Structures - Lecture 8 [Sorting Algorithms]
Muhammad Hammad Waseem
 
Sql Basics And Advanced
rainynovember12
 
Arrays In C Language
Surbhi Yadav
 
Restricting and Sorting Data - Oracle Data Base
Salman Memon
 
Sequences and indexes
Balqees Al.Mubarak
 

Viewers also liked (20)

PPT
Traffic Skills, Parent & Kids Intro
Eugene SRTS
 
PPTX
Introduction To Programming in Matlab
DataminingTools Inc
 
PPTX
XL-Miner: Timeseries
DataminingTools Inc
 
PPTX
SPSS: Data Editor
DataminingTools Inc
 
PPTX
Txomin Hartz Txikia
irantzugoitia86
 
PPT
2008 IEDM presentation
slrommel
 
PPTX
WEKA: Output Knowledge Representation
DataminingTools Inc
 
PPTX
XL-MINER:Partition
DataminingTools Inc
 
PPTX
MS Sql Server: Deleting A Database
DataminingTools Inc
 
PPT
Powerpoint paragraaf 5.3/5.4
guestaa9e6a
 
PPT
HistoriografíA Latina LatíN Ii
lara
 
PPT
Mphone
msprincess915
 
PPTX
WEKA: Credibility Evaluating Whats Been Learned
DataminingTools Inc
 
PPTX
RapidMiner: Nested Subprocesses
DataminingTools Inc
 
PPTX
Data Applied:Outliers
DataminingTools Inc
 
PPT
Facebook: An Innovative Influenza Pandemic Early Warning System
Chen Luo
 
PPTX
Matlab: Discrete Linear Systems
DataminingTools Inc
 
PPTX
LISP: Scope and extent in lisp
DataminingTools Inc
 
PPTX
LISP: Errors In Lisp
DataminingTools Inc
 
PPTX
Retrieving Data From A Database
DataminingTools Inc
 
Traffic Skills, Parent & Kids Intro
Eugene SRTS
 
Introduction To Programming in Matlab
DataminingTools Inc
 
XL-Miner: Timeseries
DataminingTools Inc
 
SPSS: Data Editor
DataminingTools Inc
 
Txomin Hartz Txikia
irantzugoitia86
 
2008 IEDM presentation
slrommel
 
WEKA: Output Knowledge Representation
DataminingTools Inc
 
XL-MINER:Partition
DataminingTools Inc
 
MS Sql Server: Deleting A Database
DataminingTools Inc
 
Powerpoint paragraaf 5.3/5.4
guestaa9e6a
 
HistoriografíA Latina LatíN Ii
lara
 
WEKA: Credibility Evaluating Whats Been Learned
DataminingTools Inc
 
RapidMiner: Nested Subprocesses
DataminingTools Inc
 
Data Applied:Outliers
DataminingTools Inc
 
Facebook: An Innovative Influenza Pandemic Early Warning System
Chen Luo
 
Matlab: Discrete Linear Systems
DataminingTools Inc
 
LISP: Scope and extent in lisp
DataminingTools Inc
 
LISP: Errors In Lisp
DataminingTools Inc
 
Retrieving Data From A Database
DataminingTools Inc
 
Ad

Similar to Oracle: DML (20)

PPTX
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
PPT
Les09.ppt
AlhassanFederated
 
PPT
Les09[1]Manipulating Data
siavosh kaviani
 
PPTX
SQL-SHORT-NOTES.pptx
PratheeshKumarN
 
PPTX
Unit - II.pptx
MrsSavitaKumbhare
 
PPTX
SQL(DDL & DML)
Sharad Dubey
 
PPT
Sql DML
Vikas Gupta
 
PPT
Sql DML
Vikas Gupta
 
PPT
plsql Les08
sasa_eldoby
 
PDF
BCS4L1-Database Management lab.pdf
KeerthanaP37
 
PDF
sql all type of commands in this power point presentation
BrahmamKolli
 
PDF
COMMANDS PPT(1).pdf
BrahmamKolli
 
PDF
ppt.pdf
BrahmamKolli
 
PPTX
DBMS UNIT-2.pptx ggggggggggggggggggggggg
Praveen Kumar
 
PPTX
Oracle SQL DML Statements
A Data Guru
 
DOCX
Oracle 11g SQL Overview
Prathap Narayanappa
 
PPTX
SQL commands
GirdharRatne
 
PPTX
BWU_BTA_22_403_Aishika Majumdar and all about cse
SandipPradhan23
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
Les09[1]Manipulating Data
siavosh kaviani
 
SQL-SHORT-NOTES.pptx
PratheeshKumarN
 
Unit - II.pptx
MrsSavitaKumbhare
 
SQL(DDL & DML)
Sharad Dubey
 
Sql DML
Vikas Gupta
 
Sql DML
Vikas Gupta
 
plsql Les08
sasa_eldoby
 
BCS4L1-Database Management lab.pdf
KeerthanaP37
 
sql all type of commands in this power point presentation
BrahmamKolli
 
COMMANDS PPT(1).pdf
BrahmamKolli
 
ppt.pdf
BrahmamKolli
 
DBMS UNIT-2.pptx ggggggggggggggggggggggg
Praveen Kumar
 
Oracle SQL DML Statements
A Data Guru
 
Oracle 11g SQL Overview
Prathap Narayanappa
 
SQL commands
GirdharRatne
 
BWU_BTA_22_403_Aishika Majumdar and all about cse
SandipPradhan23
 
Ad

More from DataminingTools Inc (20)

PPTX
Terminology Machine Learning
DataminingTools Inc
 
PPTX
Techniques Machine Learning
DataminingTools Inc
 
PPTX
Machine learning Introduction
DataminingTools Inc
 
PPTX
Areas of machine leanring
DataminingTools Inc
 
PPTX
AI: Planning and AI
DataminingTools Inc
 
PPTX
AI: Logic in AI 2
DataminingTools Inc
 
PPTX
AI: Logic in AI
DataminingTools Inc
 
PPTX
AI: Learning in AI 2
DataminingTools Inc
 
PPTX
AI: Learning in AI
DataminingTools Inc
 
PPTX
AI: Introduction to artificial intelligence
DataminingTools Inc
 
PPTX
AI: Belief Networks
DataminingTools Inc
 
PPTX
AI: AI & Searching
DataminingTools Inc
 
PPTX
AI: AI & Problem Solving
DataminingTools Inc
 
PPTX
Data Mining: Text and web mining
DataminingTools Inc
 
PPTX
Data Mining: Outlier analysis
DataminingTools Inc
 
PPTX
Data Mining: Mining stream time series and sequence data
DataminingTools Inc
 
PPTX
Data Mining: Mining ,associations, and correlations
DataminingTools Inc
 
PPTX
Data Mining: Graph mining and social network analysis
DataminingTools Inc
 
PPTX
Data warehouse and olap technology
DataminingTools Inc
 
PPTX
Data Mining: Data processing
DataminingTools Inc
 
Terminology Machine Learning
DataminingTools Inc
 
Techniques Machine Learning
DataminingTools Inc
 
Machine learning Introduction
DataminingTools Inc
 
Areas of machine leanring
DataminingTools Inc
 
AI: Planning and AI
DataminingTools Inc
 
AI: Logic in AI 2
DataminingTools Inc
 
AI: Logic in AI
DataminingTools Inc
 
AI: Learning in AI 2
DataminingTools Inc
 
AI: Learning in AI
DataminingTools Inc
 
AI: Introduction to artificial intelligence
DataminingTools Inc
 
AI: Belief Networks
DataminingTools Inc
 
AI: AI & Searching
DataminingTools Inc
 
AI: AI & Problem Solving
DataminingTools Inc
 
Data Mining: Text and web mining
DataminingTools Inc
 
Data Mining: Outlier analysis
DataminingTools Inc
 
Data Mining: Mining stream time series and sequence data
DataminingTools Inc
 
Data Mining: Mining ,associations, and correlations
DataminingTools Inc
 
Data Mining: Graph mining and social network analysis
DataminingTools Inc
 
Data warehouse and olap technology
DataminingTools Inc
 
Data Mining: Data processing
DataminingTools Inc
 

Recently uploaded (20)

PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
FME in Overdrive: Unleashing the Power of Parallel Processing
Safe Software
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Draugnet: Anonymous Threat Reporting for a World on Fire
treyka
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PDF
Introducing and Operating FME Flow for Kubernetes in a Large Enterprise: Expe...
Safe Software
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
FME in Overdrive: Unleashing the Power of Parallel Processing
Safe Software
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Draugnet: Anonymous Threat Reporting for a World on Fire
treyka
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
Introducing and Operating FME Flow for Kubernetes in a Large Enterprise: Expe...
Safe Software
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 

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