public static void delMessage(String messageId){
String sql = "update message t set t.cunzai='0' where t.messageid='?'";
Connection conn = JdbcUtilsHelper.getConnection();
PreparedStatement pstmt = null;
try {
conn.setAutoCommit(true);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, messageId);
pstmt.execute();
pstmt.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}我每次调用这个方法的时候都报出 无效的列索引 帮我来看看啊 谢谢各位了
String sql = "update message t set t.cunzai='0' where t.messageid='?'";
Connection conn = JdbcUtilsHelper.getConnection();
PreparedStatement pstmt = null;
try {
conn.setAutoCommit(true);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, messageId);
pstmt.execute();
pstmt.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}我每次调用这个方法的时候都报出 无效的列索引 帮我来看看啊 谢谢各位了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货