对于我的网站,我使用内联块属性.它适用于mozilla和ie8,但在ie7中显示为块元素.我怎么能正确设置它?
对于jdbc程序,我需要连接一个excel数据库.连接成功,但是输入值,它给出"操作必须使用可更新的查询"异常.
这是代码:
String url="jdbc:odbc:Sample"; //CHANGE THE DATABASE NAME
Connection conn= DriverManager.getConnection(url,"","");
PreparedStatement prepstat = null;
String insert="INSERT INTO [Sheet1$] ([AccountID], [ProjectID], [PositionID]) VALUES (?,?,?)";
prepstat= conn.prepareStatement(insert);
prepstat.setString(1, accountID);
prepstat.setString(2, projectID);
prepstat.setString(3, positionID);
prepstat.executeUpdate(); // this is where the exception occurs
Run Code Online (Sandbox Code Playgroud)