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
Structured Query Language
Surkhab Shelly
 
PPTX
SQL commands
GirdharRatne
 
PDF
Data manipulation language
PratibhaRashmiSingh
 
PDF
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
 
PDF
SQL Queries - DDL Commands
ShubhamBauddh
 
PPT
Introduction to structured query language (sql)
Sabana Maharjan
 
PPT
Sql dml & tcl 2
Dr. C.V. Suresh Babu
 
PDF
Sql tutorial
Rumman Ansari
 
PPT
SQL - Data Definition Language
Imam340267
 
PPTX
Data Manipulation Language
Jas Singh Bhasin
 
PPTX
Sql(structured query language)
Ishucs
 
PPTX
Introduction to database & sql
zahid6
 
PPTX
SQL(DDL & DML)
Sharad Dubey
 
PPT
Sql join
Vikas Gupta
 
PPTX
SQL - Structured query language introduction
Smriti Jain
 
PDF
SQL Overview
Stewart Rogers
 
PDF
Sql queries questions and answers
Michael Belete
 
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Beat Signer
 
PPT
Introduction to SQL
Tayyab Hussain
 
PPTX
Packages in PL/SQL
Pooja Dixit
 
Structured Query Language
Surkhab Shelly
 
SQL commands
GirdharRatne
 
Data manipulation language
PratibhaRashmiSingh
 
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
 
SQL Queries - DDL Commands
ShubhamBauddh
 
Introduction to structured query language (sql)
Sabana Maharjan
 
Sql dml & tcl 2
Dr. C.V. Suresh Babu
 
Sql tutorial
Rumman Ansari
 
SQL - Data Definition Language
Imam340267
 
Data Manipulation Language
Jas Singh Bhasin
 
Sql(structured query language)
Ishucs
 
Introduction to database & sql
zahid6
 
SQL(DDL & DML)
Sharad Dubey
 
Sql join
Vikas Gupta
 
SQL - Structured query language introduction
Smriti Jain
 
SQL Overview
Stewart Rogers
 
Sql queries questions and answers
Michael Belete
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Beat Signer
 
Introduction to SQL
Tayyab Hussain
 
Packages in PL/SQL
Pooja Dixit
 

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
 
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
BWU_BTA_22_403_Aishika Majumdar and all about cse
SandipPradhan23
 
PPTX
Ddl & dml commands
AnjaliJain167
 
PPTX
Database Management System PART- II.pptx
errvmaurya563
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
Les09[1]Manipulating Data
siavosh kaviani
 
SQL-SHORT-NOTES.pptx
PratheeshKumarN
 
Unit - II.pptx
MrsSavitaKumbhare
 
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
 
BWU_BTA_22_403_Aishika Majumdar and all about cse
SandipPradhan23
 
Ddl & dml commands
AnjaliJain167
 
Database Management System PART- II.pptx
errvmaurya563
 
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
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Python basic programing language for automation
DanialHabibi2
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 

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