关于java.sql.SQLException: Can not issue data manipulation statements with executeQuery().

首先写java程序时执行删除,更新操作时,不能用sql.executeQuery();这样会报错java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
应该用sql.executeUpdate();这样才可以
而使用select语句是可以使用sql.executeQuery();返回ResultSet类型
 
 

猜你喜欢

转载自www.cnblogs.com/wincoming/p/9694920.html
今日推荐