sql - SELECT INTO with HSQLDB -


i trying create new table result of select. works fine sql server:

select * newtable (select col1, col2, col3 oldtable) x; 

now, want achieve exact same thing hsqldb (version 2.2). have tried several forms like

select * newtable (select col1, col2, col3 oldtable); select newtable select col1, col2, col3 oldtable; create table newtable select col1, col2, col3 oldtable; 

all these variants result in form of syntax error. how can create table select hsqldb?

the manual has example this:

create table t (a, b, c) (select * atable) data 

hsqldb requires parentheses around select (unlike other dbms) , requires with data clause


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -