简体   繁体   English

Derby数据库的SQL语句中的错误

[英]Error in SQL statement for Derby database

I'm havin an error while trying to execute this piece of sql code... The error I'm getting is: 尝试执行这段sql代码时出现错误...我得到的错误是:

Encountered "(" at line 1, column 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. 根据有关INTEGER的德比详细信息,您不需要在那里的(1)。

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. 编辑后删除了AFTER部分,因为它看起来也不像derby支持。 here are the derby details for ALTER TABLE 这是ALTER TABLE的德比详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM