我刚开始使用IBM db2,并且正在运行我认为是正确的sql查询。但是当我按下运行按钮时,什么都没有发生。有人可以帮忙吗?
Problem accessing /accounts/login. Reason:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [26] in the generated java file: [/home/mi/mifi-credit/mifi-admin-web-api/target/tmp/jsp/org/apache/jsp/WEB_002dINF/views/login_jsp.java]
The return type is incompatible with JspSourceDependent.getDependants()
在结果区域下,它显示“正在等待”,实际上没有任何反应。
答案 0 :(得分:0)
尝试
CREATE TABLE INSTRUCTOR
( ins_id INTEGER PRIMARY KEY NOT NULL,
lastname VARCHAR(15) NOT NULL,
firstname VARCHAR(15) NOT NULL,
city VARCHAR(15),
country CHAR(2)
);
假设您已将;
设置为查询接口中的语句终止符(这是Db2的大多数SQL接口的默认设置),这对您应该有用。
或者,您的CREATE TABLE可能正在等待系统目录上的锁定。您可以使用MON_GET_LOCKS
https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.5.0/com.ibm.db2.luw.sql.rtn.doc/doc/r0056428.html