我想在读取其值之前检查DateTimeCheck
列是否存在:
private void parseResultSet(ResultSet ride) {
if (ride.getDate("DateTimeCheck") != null)
this.RideDate = df.format(ride.getDate("DateTimeCheck"));
}
此代码仍提供此错误:
java.sql.SQLException: Column 'DateTimeCheck' not found.
如何解决?