4

Couldn't find anything on the Internet for this at all and wondered if someone could help me.

Using Apache Derby with a query in a Spring Boot app:

The query starts like this:

WITH dbName AS {
    (Then goes on to select data from tables)
}

When running my test cases I get an exception which reads:

java.sql.SQLSyntaxErrorException: Syntax error: Encountered "with" at line 1, column 1

Does Apache Derby support WITH? I can't see any other reason why this shouldn't work.

Abra
  • 19,142
  • 7
  • 29
  • 41
Tom Withers
  • 1,171
  • 4
  • 16
  • 28

1 Answers1

5

After some more research, I can confirm that Derby does not support recursive queries

Found this Issue https://issues.apache.org/jira/browse/DERBY-11

Tom Withers
  • 1,171
  • 4
  • 16
  • 28