I’m using H2 database. I tried the following SQL, but the records are also copied:
"CREATE TABLE test_tmp AS SELECT * FROM test"
I also tried this sql:
"CREATE TABLE test_tmp AS SELECT * FROM test WITH NO DATA",
But I got an syntax error exception. So do you know how to copy a table with no records?
1 Answer