JDBC与querystring一样

时间:2013-09-01 10:58:05

标签: html

我使用过sql语句:

select * from tablename where column like ?%

sql_properties档案中。

我的堆栈跟踪中的列索引无效。

这是对的吗?

<Sep 1, 2013 4:20:59 AM PDT> <Error> <com.tms.kmcec.dao.jdbc.JDBCGlossaryFeedbackDao> <BEA-000000> <getGlossary: error java.sql.SQLException: Invalid column index> 
<Sep 1, 2013 4:20:59 AM PDT> <Error> <com.tms.kmcec.business.object.contentviewer.impl.ContentViewerBusinessObjectImpl> <BEA-000000> <getGlossary: 
BaseEJBException[cause = null errors = null]
    at com.tms.kmcec.dao.jdbc.JDBCGlossaryFeedbackDao.getGlossary(JDBCGlossaryFeedbackDao.java:164)
    at com.tms.kmcec.business.object.glossary.impl.GlossaryBusinessObjectImpl.getGlossary(GlossaryBusinessObjectImpl.java:81)
    at com.tms.kmcec.ejb.GlossarySessionBean.getGlossary(GlossarySessionBean.java:102)
    at com.tms.kmcec.ejb.GlossarySessionBean_mmq58g_ELOImpl.getGlossary(GlossarySessionBean_mmq58g_ELOImpl.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
> 

0 个答案:

没有答案