update 表名 set 列名1=值,列名2=值,列名3=值 where 条件 可一次改变几列的值,where决定改变满足哪些条件的数据 麻烦采纳,谢谢!
Connection conn=....获取连接 Statement stmt=conn.createStatment(); stmt.executeUpdate("执行的sql语句") ResultSet rs=stmt.executeQuery("查询sql语句,返回一个ResultSet结果集");