关于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类型
 
原文地址:https://www.cnblogs.com/de-ming/p/14077011.html