+ 2

What are the advantages of using CURSOR ??

27th Nov 2016, 6:53 PM
Jenny Lance
Jenny Lance - avatar
3 ответов
+ 2
Most likely you're talking about within a procedural sql language. CURSORS are just a way to loop through data rows of a table, and perform a statement or action influenced by the data from that table row. Kind of like the sql counterpart to do a "FOR loop" Usually this is not recommended for extremely large tables, and there are many times when "set-based SQL" accomplishes the same results that a cursor would, but with way more efficiency https://developer.teradata.com/blog/georgecoleman/2011/04/from-flat-logic-to-set-logic-a-basic-approach
28th Nov 2016, 10:00 AM
ViceKnightTA
ViceKnightTA - avatar
- 1
its the subject of procedural language like pgsql,tsql or plsql ect
12th Jan 2017, 8:08 PM
Hakkı Karahan
Hakkı Karahan - avatar
- 1
We can perform row by row processing so we can perform row wise validation or operations on each row....
26th Feb 2017, 12:06 PM
Ashish Shakya