SlideShare a Scribd company logo
1 of 2
Another useful item in transaction is cursors. Cursors can be used to have multiple threads going,
conditional processing, and debugging (to name a few). How can you implement them with
transactions?
Solution
1)SELECT
2)UPDATE
SELECT Cursor :-
---------------------------------
"select emp_id,emp_name from EMPLOYEES where salary > 10000".
After execution of the above statement result is given as Cursor object
Result set is Data in table if Data belongs to one table otherwise a Virual table if data is from
more
that one Table(Select statement with Joining tables)
By default Cursor points to first record of result set
We have to Move next (fetch next record), Prev (fetch previous recors)
UPDATE Cursor :-
----------------------------------
CURSOR toys_cur IS
SELECT name, manufacturer, preference_level, sell_at_yardsale_flag
FROM my_sons_collection
WHERE hours_used = 0
FOR UPDATE;
Another useful item in transaction is cursors- Cursors can be used to.docx

More Related Content

Similar to Another useful item in transaction is cursors- Cursors can be used to.docx

Enabling Applications with Informix' new OLAP functionality
 Enabling Applications with Informix' new OLAP functionality Enabling Applications with Informix' new OLAP functionality
Enabling Applications with Informix' new OLAP functionalityAjay Gupte
 
Olap Functions Suport in Informix
Olap Functions Suport in InformixOlap Functions Suport in Informix
Olap Functions Suport in InformixBingjie Miao
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cDavid Yahalom
 
Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Keshav Murthy
 
Oracle dbms_xplan.display_cursor format
Oracle dbms_xplan.display_cursor formatOracle dbms_xplan.display_cursor format
Oracle dbms_xplan.display_cursor formatFranck Pachot
 
Improved histograms in MariaDB 10.8
Improved histograms in MariaDB 10.8Improved histograms in MariaDB 10.8
Improved histograms in MariaDB 10.8Sergey Petrunya
 
A few things about the Oracle optimizer - 2013
A few things about the Oracle optimizer - 2013A few things about the Oracle optimizer - 2013
A few things about the Oracle optimizer - 2013Connor McDonald
 
SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9Umair Amjad
 
Les08 (manipulating data)
Les08 (manipulating data)Les08 (manipulating data)
Les08 (manipulating data)Achmad Solichin
 
How to use histograms to get better performance
How to use histograms to get better performanceHow to use histograms to get better performance
How to use histograms to get better performanceMariaDB plc
 
Using histograms to get better performance
Using histograms to get better performanceUsing histograms to get better performance
Using histograms to get better performanceSergey Petrunya
 

Similar to Another useful item in transaction is cursors- Cursors can be used to.docx (20)

Enabling Applications with Informix' new OLAP functionality
 Enabling Applications with Informix' new OLAP functionality Enabling Applications with Informix' new OLAP functionality
Enabling Applications with Informix' new OLAP functionality
 
sqltuningcardinality1(1).ppt
sqltuningcardinality1(1).pptsqltuningcardinality1(1).ppt
sqltuningcardinality1(1).ppt
 
DOODB_LAB.pptx
DOODB_LAB.pptxDOODB_LAB.pptx
DOODB_LAB.pptx
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
Olap Functions Suport in Informix
Olap Functions Suport in InformixOlap Functions Suport in Informix
Olap Functions Suport in Informix
 
SQL (1).pptx
SQL (1).pptxSQL (1).pptx
SQL (1).pptx
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12c
 
Les08
Les08Les08
Les08
 
Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1
 
Oracle dbms_xplan.display_cursor format
Oracle dbms_xplan.display_cursor formatOracle dbms_xplan.display_cursor format
Oracle dbms_xplan.display_cursor format
 
Improved histograms in MariaDB 10.8
Improved histograms in MariaDB 10.8Improved histograms in MariaDB 10.8
Improved histograms in MariaDB 10.8
 
A few things about the Oracle optimizer - 2013
A few things about the Oracle optimizer - 2013A few things about the Oracle optimizer - 2013
A few things about the Oracle optimizer - 2013
 
SQLQueries
SQLQueriesSQLQueries
SQLQueries
 
SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9SQL WORKSHOP::Lecture 9
SQL WORKSHOP::Lecture 9
 
Les08 (manipulating data)
Les08 (manipulating data)Les08 (manipulating data)
Les08 (manipulating data)
 
Trig
TrigTrig
Trig
 
Oracle training in hyderabad
Oracle training in hyderabadOracle training in hyderabad
Oracle training in hyderabad
 
How to use histograms to get better performance
How to use histograms to get better performanceHow to use histograms to get better performance
How to use histograms to get better performance
 
Using histograms to get better performance
Using histograms to get better performanceUsing histograms to get better performance
Using histograms to get better performance
 
Sql analytic queries tips
Sql analytic queries tipsSql analytic queries tips
Sql analytic queries tips
 

More from vtuan3

Arrange the following elements from greatest to least tendency to acce.docx
Arrange the following elements from greatest to least tendency to acce.docxArrange the following elements from greatest to least tendency to acce.docx
Arrange the following elements from greatest to least tendency to acce.docxvtuan3
 
Arrange the elution sequence of the following compounds by using rever.docx
Arrange the elution sequence of the following compounds by using rever.docxArrange the elution sequence of the following compounds by using rever.docx
Arrange the elution sequence of the following compounds by using rever.docxvtuan3
 
Are you surprised by the variety and range of issues addressed by the.docx
Are you surprised by the variety and range of issues addressed by the.docxAre you surprised by the variety and range of issues addressed by the.docx
Are you surprised by the variety and range of issues addressed by the.docxvtuan3
 
Are there ethical considerations we should consider during the the ent.docx
Are there ethical considerations we should consider during the the ent.docxAre there ethical considerations we should consider during the the ent.docx
Are there ethical considerations we should consider during the the ent.docxvtuan3
 
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docx
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docxAP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docx
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docxvtuan3
 
answers- 22- H lysine- You do not have to write them all out- ow many.docx
answers- 22- H lysine- You do not have to write them all out- ow many.docxanswers- 22- H lysine- You do not have to write them all out- ow many.docx
answers- 22- H lysine- You do not have to write them all out- ow many.docxvtuan3
 
Answer was D) but I need detailed help with steps as to how - On Janua.docx
Answer was D) but I need detailed help with steps as to how - On Janua.docxAnswer was D) but I need detailed help with steps as to how - On Janua.docx
Answer was D) but I need detailed help with steps as to how - On Janua.docxvtuan3
 
Answer the below in your own words- What were the reasons for the deco.docx
Answer the below in your own words- What were the reasons for the deco.docxAnswer the below in your own words- What were the reasons for the deco.docx
Answer the below in your own words- What were the reasons for the deco.docxvtuan3
 
Answer in your own words- Would you agree with Karl Marx in saying tha.docx
Answer in your own words- Would you agree with Karl Marx in saying tha.docxAnswer in your own words- Would you agree with Karl Marx in saying tha.docx
Answer in your own words- Would you agree with Karl Marx in saying tha.docxvtuan3
 
Analyze the role of credit rationing in both a developed country and a.docx
Analyze the role of credit rationing in both a developed country and a.docxAnalyze the role of credit rationing in both a developed country and a.docx
Analyze the role of credit rationing in both a developed country and a.docxvtuan3
 
Annual worth calculations require equal life alternatives- T or F - An.docx
Annual worth calculations require equal life alternatives- T or F - An.docxAnnual worth calculations require equal life alternatives- T or F - An.docx
Annual worth calculations require equal life alternatives- T or F - An.docxvtuan3
 
Annual editions of journal What will social media look like in the fu.docx
Annual editions of journal  What will social media look like in the fu.docxAnnual editions of journal  What will social media look like in the fu.docx
Annual editions of journal What will social media look like in the fu.docxvtuan3
 
An unknown mixture of ions was treated with hydrochloric acid resultin.docx
An unknown mixture of ions was treated with hydrochloric acid resultin.docxAn unknown mixture of ions was treated with hydrochloric acid resultin.docx
An unknown mixture of ions was treated with hydrochloric acid resultin.docxvtuan3
 
Analyze the role cryptographic algorithms play and explain how these a.docx
Analyze the role cryptographic algorithms play and explain how these a.docxAnalyze the role cryptographic algorithms play and explain how these a.docx
Analyze the role cryptographic algorithms play and explain how these a.docxvtuan3
 
Analyze and determine which sector- public or private- has greater ins.docx
Analyze and determine which sector- public or private- has greater ins.docxAnalyze and determine which sector- public or private- has greater ins.docx
Analyze and determine which sector- public or private- has greater ins.docxvtuan3
 
an102 Tollowing infrared spectra- Some examples of functional groups a.docx
an102 Tollowing infrared spectra- Some examples of functional groups a.docxan102 Tollowing infrared spectra- Some examples of functional groups a.docx
an102 Tollowing infrared spectra- Some examples of functional groups a.docxvtuan3
 
An unknown compound is one of the four compounds shown below- It is an.docx
An unknown compound is one of the four compounds shown below- It is an.docxAn unknown compound is one of the four compounds shown below- It is an.docx
An unknown compound is one of the four compounds shown below- It is an.docxvtuan3
 
Analyze the types of informal and formal communication in organization.docx
Analyze the types of informal and formal communication in organization.docxAnalyze the types of informal and formal communication in organization.docx
Analyze the types of informal and formal communication in organization.docxvtuan3
 
Encapsulation process- Explain this process giving specific detail at.docx
Encapsulation process- Explain this process giving specific detail at.docxEncapsulation process- Explain this process giving specific detail at.docx
Encapsulation process- Explain this process giving specific detail at.docxvtuan3
 
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docx
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docxElijah Murphy studied voice- opera- and Jewish liturgical music at the.docx
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docxvtuan3
 

More from vtuan3 (20)

Arrange the following elements from greatest to least tendency to acce.docx
Arrange the following elements from greatest to least tendency to acce.docxArrange the following elements from greatest to least tendency to acce.docx
Arrange the following elements from greatest to least tendency to acce.docx
 
Arrange the elution sequence of the following compounds by using rever.docx
Arrange the elution sequence of the following compounds by using rever.docxArrange the elution sequence of the following compounds by using rever.docx
Arrange the elution sequence of the following compounds by using rever.docx
 
Are you surprised by the variety and range of issues addressed by the.docx
Are you surprised by the variety and range of issues addressed by the.docxAre you surprised by the variety and range of issues addressed by the.docx
Are you surprised by the variety and range of issues addressed by the.docx
 
Are there ethical considerations we should consider during the the ent.docx
Are there ethical considerations we should consider during the the ent.docxAre there ethical considerations we should consider during the the ent.docx
Are there ethical considerations we should consider during the the ent.docx
 
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docx
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docxAP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docx
AP Chemistry Review Questions Integrating Content- Inquiry and Reasoni.docx
 
answers- 22- H lysine- You do not have to write them all out- ow many.docx
answers- 22- H lysine- You do not have to write them all out- ow many.docxanswers- 22- H lysine- You do not have to write them all out- ow many.docx
answers- 22- H lysine- You do not have to write them all out- ow many.docx
 
Answer was D) but I need detailed help with steps as to how - On Janua.docx
Answer was D) but I need detailed help with steps as to how - On Janua.docxAnswer was D) but I need detailed help with steps as to how - On Janua.docx
Answer was D) but I need detailed help with steps as to how - On Janua.docx
 
Answer the below in your own words- What were the reasons for the deco.docx
Answer the below in your own words- What were the reasons for the deco.docxAnswer the below in your own words- What were the reasons for the deco.docx
Answer the below in your own words- What were the reasons for the deco.docx
 
Answer in your own words- Would you agree with Karl Marx in saying tha.docx
Answer in your own words- Would you agree with Karl Marx in saying tha.docxAnswer in your own words- Would you agree with Karl Marx in saying tha.docx
Answer in your own words- Would you agree with Karl Marx in saying tha.docx
 
Analyze the role of credit rationing in both a developed country and a.docx
Analyze the role of credit rationing in both a developed country and a.docxAnalyze the role of credit rationing in both a developed country and a.docx
Analyze the role of credit rationing in both a developed country and a.docx
 
Annual worth calculations require equal life alternatives- T or F - An.docx
Annual worth calculations require equal life alternatives- T or F - An.docxAnnual worth calculations require equal life alternatives- T or F - An.docx
Annual worth calculations require equal life alternatives- T or F - An.docx
 
Annual editions of journal What will social media look like in the fu.docx
Annual editions of journal  What will social media look like in the fu.docxAnnual editions of journal  What will social media look like in the fu.docx
Annual editions of journal What will social media look like in the fu.docx
 
An unknown mixture of ions was treated with hydrochloric acid resultin.docx
An unknown mixture of ions was treated with hydrochloric acid resultin.docxAn unknown mixture of ions was treated with hydrochloric acid resultin.docx
An unknown mixture of ions was treated with hydrochloric acid resultin.docx
 
Analyze the role cryptographic algorithms play and explain how these a.docx
Analyze the role cryptographic algorithms play and explain how these a.docxAnalyze the role cryptographic algorithms play and explain how these a.docx
Analyze the role cryptographic algorithms play and explain how these a.docx
 
Analyze and determine which sector- public or private- has greater ins.docx
Analyze and determine which sector- public or private- has greater ins.docxAnalyze and determine which sector- public or private- has greater ins.docx
Analyze and determine which sector- public or private- has greater ins.docx
 
an102 Tollowing infrared spectra- Some examples of functional groups a.docx
an102 Tollowing infrared spectra- Some examples of functional groups a.docxan102 Tollowing infrared spectra- Some examples of functional groups a.docx
an102 Tollowing infrared spectra- Some examples of functional groups a.docx
 
An unknown compound is one of the four compounds shown below- It is an.docx
An unknown compound is one of the four compounds shown below- It is an.docxAn unknown compound is one of the four compounds shown below- It is an.docx
An unknown compound is one of the four compounds shown below- It is an.docx
 
Analyze the types of informal and formal communication in organization.docx
Analyze the types of informal and formal communication in organization.docxAnalyze the types of informal and formal communication in organization.docx
Analyze the types of informal and formal communication in organization.docx
 
Encapsulation process- Explain this process giving specific detail at.docx
Encapsulation process- Explain this process giving specific detail at.docxEncapsulation process- Explain this process giving specific detail at.docx
Encapsulation process- Explain this process giving specific detail at.docx
 
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docx
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docxElijah Murphy studied voice- opera- and Jewish liturgical music at the.docx
Elijah Murphy studied voice- opera- and Jewish liturgical music at the.docx
 

Recently uploaded

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Recently uploaded (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

Another useful item in transaction is cursors- Cursors can be used to.docx

  • 1. Another useful item in transaction is cursors. Cursors can be used to have multiple threads going, conditional processing, and debugging (to name a few). How can you implement them with transactions? Solution 1)SELECT 2)UPDATE SELECT Cursor :- --------------------------------- "select emp_id,emp_name from EMPLOYEES where salary > 10000". After execution of the above statement result is given as Cursor object Result set is Data in table if Data belongs to one table otherwise a Virual table if data is from more that one Table(Select statement with Joining tables) By default Cursor points to first record of result set We have to Move next (fetch next record), Prev (fetch previous recors) UPDATE Cursor :- ---------------------------------- CURSOR toys_cur IS SELECT name, manufacturer, preference_level, sell_at_yardsale_flag FROM my_sons_collection WHERE hours_used = 0 FOR UPDATE;