因该是第15列 这个程序应该是对第15列的时间进行更新取出时间
java.util.Date date=rst.getDate(1);直接写列名java.util.Date date=rst.getDate(“date”);试试看看看这个
public void updateDate(String columnName,
Date x)
throws SQLException
Updates the designated column with a java.sql.Date value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
java.util.Date date=rst.getDate(1);直接写列名java.util.Date date=rst.getDate(“date”);试试看看看这个
public void updateDate(String columnName,
Date x)
throws SQLException
Updates the designated column with a java.sql.Date value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. Parameters:
columnName - the name of the column
x - the new column value
Throws:
SQLException - if a database access error occurs
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货