Unexpected query token 'delete' (SELECT is expected) (error 752)

#1

simple codes(see attachment), failed.

 

#2

DELETE queries should not be run with getSingleResult (which is for SELECT queries).

Use executeUpdate instead. See this manual page.

ObjectDB Support

Reply