Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Action
- public void testAction6() {
- //JOptionPane.showMessageDialog(Utils.getMainFrame(), "Zalozka2 - tlacidlo6");
- try{
- Connection Con = DriverManager.getConnection("jdbc:derby://localhost:1527/mydb","villy","villy");
- Statement s = (Statement) Con.createStatement();
- String vloz = "INSERT INTO VILLY.Ludia (Meno, Priezvisko, Vek) VALUES ('Juraj','Deravy',22)";
- s.executeUpdate(vloz);
- }catch(SQLException e){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement