Why do you have those quotes around the parameter marker in the SQL?
Michael Dirks
Greenhorn
Joined: May 22, 2006
Posts: 4
posted
1
You're putting quotes around your parameter which means that instead of the query trying to find the row number where call_no_display = callNumber, it's trying to find a case where call_display equals a string that has a question mark in it.
try this instead:
String getRowNumber = "SELECT row_number FROM call_no_browse WHERE call_no_display = ? ";