java.sql.SQLException:[Microsoft] [ODBC Microsoft Access驱动程序]参数太少 [英] java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters
本文介绍了java.sql.SQLException:[Microsoft] [ODBC Microsoft Access驱动程序]参数太少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎这部分代码是发生异常的地方:
It seems that this part of my code is where the exception occurs:
c = dbConnection.getConnection();
q = "SELECT * FROM book WHERE nextInc<=? AND inlib=?";
s = c.prepareStatement(q);
s.setBigDecimal(1,BigDecimal.valueOf(curDate.getTime()));
s.setBoolean(2,false);
rs = s.executeQuery(); <-- Error.
我使用的是sun.jdbc.odbc.JdbcOdbcDriver。
I'm using "sun.jdbc.odbc.JdbcOdbcDriver".
推荐答案
根据此
您可以将表格的结构放在这里吗?
Could you put the structure of the table here?
这篇关于java.sql.SQLException:[Microsoft] [ODBC Microsoft Access驱动程序]参数太少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文