I want to check if DateTimeCheck
column exists before reading its value:
private void parseResultSet(ResultSet ride) {
if (ride.getDate("DateTimeCheck") != null)
this.RideDate = df.format(ride.getDate("DateTimeCheck"));
}
This code still provides this error:
java.sql.SQLException: Column 'DateTimeCheck' not found.
How to fix it?