I am trying to delete entries from the h2 database (version 1.0.71), but I am getting a query syntax error. Request in progress:
DELETE FROM TABLE_NAME WHERE QUERY_FIELD LIKE '%somevalue%' LIMIT 1000;
The error message I receive (and which is not very useful to me):
Syntax error in SQL statement DELETE FROM TABLE_NAME WHERE QUERY_FIELD LIKE '%somevalue%' LIMIT[*] 1000;
The LIMIT part seems to be a problem, isn't it supported in h2 1.0.71?
When I execute a similar SELECT query:
SELECT * FROM TABLE_NAME WHERE QUERY_FIELD LIKE '%somevalue%' LIMIT 1000;
This gives me the expected results. Is a combination of LIKE and LIMIT problematic?
source share