I\'m trying to return a value from a select statement. Its only one value because the value I\'m returning is from the primary key column.
The SQL statement is
You need to change
while (rs.next()) value = rs.toString();
to
while (rs.next()) value = rs.getString("itemNo");