Home  >  Article  >  Database  >  如何用java对mysql 里面的数据进行批量修改

如何用java对mysql 里面的数据进行批量修改

WBOY
WBOYOriginal
2016-06-06 09:44:401695browse

mysqljava

现在想要对数据库里面的学生姓名、年龄、性别、电话、、、进行修改,如何进行批量操作,比如一次性对于上述所属全部修改(更新),试过用statement.executeUpdate(sql1);statement.executeUpdate(sql2);....可是会出现sql语句语法错误,但是语句在数据库里面试过了,没有错误,求解

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn