我正在尝试使用Java Swing更新mysql记录.似乎MySql Update语句存在一些问题.我已粘贴代码如下:
conDBase = getConnection();
stmt = conDBase.createStatement();
String sql = "update user set role = " + jComboBox1.getSelectedItem()+ "where userID =" + jComboBox2.getSelectedItem();
stmt.executeUpdate(sql);
conDBase.close();
JOptionPane.showMessageDialog(null, "User Role Updated");
this.dispose();
new Admin().setVisible(true);
Run Code Online (Sandbox Code Playgroud) 在VB.net中连接MS Access 2010(.accdb)数据库的连接字符串是什么.