Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String url = "jdbc:postgresql://158.75.112.103:55655/pz2020";
- String user = "pz2020";
- String password = "P3zetka";
- Connection conn = DriverManager.getConnection(url, user, password);
- CallableStatement cst = conn.prepareCall("CALL proc_move_zadanie(?, ?)");
- cst.setInt(1, #); // id zadania kliknietego (zamieniasz 5 na jakies id)
- cst.setInt(2, #); // docelowy numer na ktory chcemy przesunac to zadanie (zamieniasz 6 na jakis numer)
- cst.execute();
- cst.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement