我在尝试执行这段sql代码时遇到错误...我得到的错误是:
Encountered "(" at line 1, column 45
这段代码是:
ALTER TABLE APP.RESPOSTAS ADD coluna" + (numColumns + 1) + " INTEGER(1) AFTER coluna" + numColumns;
任何人都可以帮助我吗?
谢谢大家!
答案 0 :(得分:1)
根据The derby details for INTEGER,你不需要那里的(1)。
ALTER TABLE APP.RESPOSTAS ADD coluna" + (numColumns + 1) + " INTEGER
应该有用吗?
编辑删除AFTER
部分,因为它看起来不像德比支持。
here are the derby details for ALTER TABLE