Hi all, I've got a function like this
public double getSectionTotalManday(Connection conn, String section,
String sub_section,
GregorianCalendar ReqPeriod,
String reportsTo) throws SQLException {
StringBuffer sqlBuffer = new StringBuffer(1024);
sqlBuffer.append("SELECT * FROM EA_MR_DTL_TBL dtl ");
sqlBuffer.append("WHERE dtl.SECTION = ? ");
PreparedStatement stmt =
conn.prepareStatement(sqlBuffer.toString());
int i = 0;
stmt.setString(++i, section);
ResultSet rslt = stmt.executeQuery(sqlBuffer.toString());
return -1;
}
working with table EA_MR_DTL_TBL {
...
section VARCHAR2(5) NOT NULL,
...
but when I do call this in JSP , I got ORA-01008: not all variables bound .Quote:}
Why's that ? Thanks .
Perseus