I have a SQL problem with a h2 database. I want to add a column but always get an error although I strictly stick to the syntax.
Example:
create table t1 (c1 bool,c3 bool);
alter table t1 add column c2 bool after c1;
Creating the table is no problem. But when it comes to the second line a get the following error:
Syntax error in SQL statement "ALTER TABLE T1 ADD COLUMN C2 BOOL AFTER[*] C1 "; SQL statement:
alter table t1 add column c2 bool after c1 [42000-168] 42000/42000 (Help)
What am I doing wrong?
Edit: The same error message is displayed when I omit "column":
alter table t1 add c2 bool after c1;