I am trying to check if a schema that I have created exists. I am trying to use this line to check. I get an error saying " Lexical error at line 1, column 23. Encountered: "\" (92), after : "". "
Here is the line of code that I use:
statement.execute("SELECT " + schema + " FROM "+ dbName + ".SCHEMATA WHERE SCHEMA_NAME = " + "'" + schema + "'");
I am making a connection just fine and the Database defiantly exists. The dbName is :
"C:/.testing/DerbyDB/AssetDB"
What am I doing wrong here?