Sybase Error – FOR UPDATE has been incorrectly specified for a READ ONLY cursor

In this blog post, you’ll learn more about the Sybase Error FOR UPDATE has been incorrectly specified for a READ ONLY cursor and the reason for receiving this error

Sybase SQL Error Message

FOR UPDATE has been incorrectly specified for a READ ONLY cursor

Reason for this Error

You attempted to declare a cursor FOR UPDATE on a query that is not updatable. Queries that contain DISTINCT, GROUP BY, HAVING, INTERSECT, EXCEPT, or UNION, or that contain aggregate functions are read-only. If the ansi_update_constraints option is on, then queries that contain a join are read-only. If the query references a view then the view may be non-updatable.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this blog post, you’ll learn more about the Sybase Error Seek failed: the requested segment offset %2 is outside...
In this blog post, you’ll learn more about the Sybase Error No indicator variable provided for NULL result and the...
In this blog post, you’ll learn more about the Sybase Error %2: Memory & disk block number mismatch; buffer={%3} page={%4}....