First of all, I apologize to dig this old thread out, but I thought this would be the best continuation as my problem is exactly the same as the subject line says.
Secondly, I never used HSQLDB before and I installed it, set up my settings
Type : HSQL Database Engine Standalone
Driver : org.hsqldb.jdbcDriver
URL : jdbc:hsqldb:file:MyDB
User : SA
Password : <<Null>> //No password
I created a table called Employee under schema PUBLIC and from the script I see the following statements
From HSQLDB, when I did select, it worked and retrieved me a record (1,ABC,ITG,5000)
So I thought the table creation is fine and then moved onto write a sample JDBC app to retrieve the record
As you see, it is a very simple program to retrieve the records. But upon running, it is failing at ResultSet rs = s.executeQuery("SELECT * FROM PUBLIC.EMPLOYEE"); with the exception
Is my query in extracting records wrong ? or is that because of the statement in .script file
CREATE MEMORY TABLE PUBLIC.EMPLOYEE(ID INTEGER NOT NULL PRIMARY KEY,EMP_NAME VARCHAR(20),EMP_DEPT VARCHAR(20),EMP_SALARY DOUBLE)
which may necessarily mean that the table is created in memory, but not accessible from another process like external
java application but on same jvm.