开发者

Error in SQL statement for Derby database

开发者 https://www.devze.com 2023-01-21 19:44 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消