String query2="insert categories values(11,''''Naicha'''',''''Coffee taste'''')"; try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection con=DriverManager.getConnection(url,"sa","739555"); Statement stmt=con.createStatement(); stmt.executeUpdate(query1); stmt.executeUpdate(query2);
stmt.close(); con.close();
} catch(SQLException ex) {
} catch(java.lang.Exception ex) { ex.printStackTrace(); } } }
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |