增、删、改 用executeUpdate()
返回值为int型,表示被影响的行数
例子
查用executeQuery() 返回的是一个集合
.next()表示 指针先下一行,还有first()指向第一行 、last()指向最后一行、如果有数据就返回true
executeUpdate()与executeQuery()的使用
最新推荐文章于 2024-11-15 15:30:44 发布
增、删、改 用executeUpdate()
返回值为int型,表示被影响的行数
例子
查用executeQuery() 返回的是一个集合
.next()表示 指针先下一行,还有first()指向第一行 、last()指向最后一行、如果有数据就返回true