Please read the Guide.
http://www.hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html#dbc_table_creation
You need to specify WITH DATA or WITH NO DATA at the end of the statement.
Question
I am using the dbVisualizer to handle tables in my database, I want to clone a table. This is what I am using:
CREATE TABLE TIMEREPORT.MANAGER_CONFIRMATION_CRITERIA AS
(SELECT * FROM TIMEREPORT.MANAGER_CRITERIA);
But it gives me an error:
10:34:03 [CREATE - 0 row(s), 0.000 secs] [Error Code: -5590, SQL State: 42590] unexpected end of statement: required: WITH
What am I missing?
Solution
Please read the Guide.
http://www.hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html#dbc_table_creation
You need to specify WITH DATA or WITH NO DATA at the end of the statement.