-
@@cursor_rows !
Hi!
Is @@cursor_rows a reliable way to get how many rows will be returned by a cursor ? I could do a count but if a variable works for me then I don't want another query!
What happens if there are 2 cursors running at the same time but one of them uses the @@cursor_rows..will I get the correct results. I have some calculations based on which row of the cursor I am on ?
Please advise
Thanks
-
if it is a static cursor then @@cursor_rows is useful or else use a count()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|