在处理一些JDBC代码时,我遇到了以下错误:
java.sql.sqlexception missing in or out parameter at index: 6
有人能解释一下这是什么意思吗?更普遍地说,是否有一个网站/文档集可以解释错误语句的含义?
select foo from bar where a=? and b=? and c=? ...
st.setInteger(1,123); // goes to a
st.setString(2,"hello"); // goes to b
...
st.setNull(6,Types.VARCHAR);