I'm havin an error while trying to execute this piece of sql code... The error I'm getting is:
Encountered "(" at line 1, col开发者_开发技巧umn 45
The piece of code is:
ALTER TABLE APP.RESPOSTAS ADD coluna" + (numColumns + 1) + " INTEGER(1) AFTER coluna" + numColumns;
Can anyone help me?
Thank you all!
According to The derby details for INTEGER you don't need the (1) in there.
ALTER TABLE APP.RESPOSTAS ADD coluna" + (numColumns + 1) + " INTEGER
should work?
edited to remove the AFTER
section as it doesn't look like derby supports that either.
here are the derby details for ALTER TABLE
精彩评论