79773685

Date: 2025-09-24 12:04:58
Score: 0.5
Natty:
Report link

In an anonymous code block, a DO loop, it's not possible to open a cursor. This is only possible through functions or procedures. However, a FOR loop within an anonymous code block will use a cursor internally, so you could rewrite the query that way.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Grant Fritchey