com.sybase.jdbc2.jdbc.SybSQLException: FOR UPDATE can not be used in a SELECT which is not part of the declaration of a cursor or which is not inside a stored procedure.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
FOR UPDATE can not be used in a SELECT which is not part of the declaration of a cursor or which is not inside a stored procedure.
via Google Groups by ann_lynn, 2 years ago
Execute cursor 'jconnect_implicit_1' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement w
via Google Groups by Unknown author, 1 year ago
A wrong datastream has been sent to the server. The server was expecting token 236 but got the token 33. This is an internal error.
via Google Groups by JMCraig, 2 years ago
Attempt to insert NULL value into column 'DECIMAL_DIGITS', table '#bestinfo'; column does not allow nulls. Update fails.
via Oracle Community by 3004, 1 year ago
SET CHAINED command not allowed within m lti-statement transaction.
via Google Groups by Tarek Hammoud, 7 months ago
SET CHAINED command not allowed within multi-statement transaction.
com.sybase.jdbc2.jdbc.SybSQLException: FOR UPDATE can not be used in a SELECT which is not part of the declaration of a cursor or which is not inside a stored procedure.
at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2636)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.