求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();
[解决办法]
"\ "符号要进行转义-> "\\ "