preparedStatement对象的execute()、executeUpdate()、executeQuery()
阅读更多看过的东西忘得太快,即便记住,真正用上了才发现记的东西模棱两可。今天用jdbc写了一段SQL语句,用PreparedStatement对象来插入对象,用pstmt.execute()的执行结果来判断数据是否插入成功:pstmt=conn.prepareStatement("insertintocolumninfo(columntitle,reid,topid)values(?,?,?)")