SQL Cursors

Posted by Joe Enos on February 23, 2021 · 1 min read

Most of the time, you can use regular queries to accomplish your needs in a SQL database. There are plenty of interesting design patterns to work with sets of data, but once in awhile, you need the flexibility of a cursor.

Here's an example of a straightforward read only cursor.

View code on GitHub