Oracle SQL & PL - SQL - Examples of Oracle PL - SQL Cursors
Oracle SQL & PL - SQL - Examples of Oracle PL - SQL Cursors
http://sql-plsql.blogspot.com/2007/05/examples-of-oracle-plsql-cursors...
Share
Report Abuse
Next Blog
Create Blog
Sign In
RSS Feed
Database Recovery Fix Databases & Recover Data. Fast Turnaround. Speak To An Expert Now.
www.data-recovery.com.au
Oracle Services Oracle Database Services & Support EBS Consulting & Support
www.dhanushinfotech.com
Free Dynamics AX Training Accelerate your ERP career now Switch skills to Microsoft Dynamics
www.linkedin.com
Application Load Testing Specializing in load test mentoring consulting and troubleshooting
loadtest.com.au
1 of 2
8/05/2011 10:08 PM
http://sql-plsql.blogspot.com/2007/05/examples-of-oracle-plsql-cursors...
END; 2) Create a PL/SQL block to increase salary of employees in department 17. a) The salary increase is 20% for the employees making less than $90,000 and 12% for the employees making $90,000 or more. b) Use a cursor with a FOR UPDATE clause. c) Update the salary with a WHERE CURRENT OF clause in a cursor FOR loop (cursor FOR loop problem).
SQL - Foreign Key Constraint SQL - Default Constraint SQL - Check Constraint SQL - ROLLUP SQL - CUBE SQL - STUFF() SQL - Count_Big SQL - Binary_Checksum SQL - Checksum_AGG SQL - Index Include SQL - Covered Query SQL - Identity SQL - sp_columns SQL Interview Questions Oracle PL/SQL PL/SQL Introduction PL/SQL Procedures PL/SQL Functions PL/SQL Collections PL/SQL Records PL/SQL Table Based Records PL/SQL Programmer Defined Records PL/SQL Cursor Based Records PL/SQL Tables PL/SQL Varrays PL/SQL Nested Tables PL/SQL Triggers PL/SQL Cursors PL/SQL Implicit Cursors PL/SQL Explicit Cursors PL/SQL REF Cursors PL/SQL Cursor For Loop PL/SQL Cursors with Parameters PL/SQL Where Current Of and For Update Examples of PL/SQL Cursors PL/SQL Interview Questions SQL PL/SQL Sitemap
Oracle automatically associates an implicit cursor with the SELECT INTO statement and fetches the values for the variables var_firstname and var_lastname. After the SELECT INTO statement completes, Oracle closes the implicit cursor.
Home
2 of 2
8/05/2011 10:08 PM