日期:2014-05-18  浏览次数:20660 次

求jsp直连更新access一个指定字段的数据的方法
求jsp直连更新access一个指定字段的数据的方法,如何直接连接access数据库,及只更新其中的一个字段

------解决方案--------------------
Class.forName(driver);
Connection con=DriverManager.getConnection();
Statement stmt=con.createStatement( "update table_name set field_name= 'fuck_boss ' where id= 'boss_mother ' ");
stmt.executeUpdate();
stmt.close();
con.close();
------解决方案--------------------
"\ "符号要进行转义-> "\\ "