I'm just after a way to convert a ResultSet to string I've tried:
toReturn = result.getString(0);
I'm only after a proof that its working and thought this would be all that I need to return it via:
writer.write(toReturn);
TIA
JDBC column indexes start at 1, not zero, so try result.getString(1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With