I have two columns i.e. userName and password. I've tried text, character, character varying datatypes but getting error "The column name userName was not found in this ResultSet.
". Please help.
Here's the code snoppet:
I'm going to suggest that Shubhendu could look at the getMetaData() method of ResultSet, which returns an object which can tell you what the names of the ResultSet's columns are, among many other things. That might lead to a better understanding of what's going on.
Dana Ucaed wrote:Are you sure that the column username is String?
Yes Dana. For password field also I am getting the same error.
My concern is what is the String equivalent datatype of String (userName and password) on PostgreSQL. I've tried below datatypes for userName as well as password resp and getting same error:
text, character, character varying.