Posts by Sancho • 21 points
3 posts
-
0
votes0
answers45
viewsQ: Ideas to make a private history
try { Connection lig = DriverManager.getConnection( "jdbc:mysql://localhost/gym", "root", "0000"); PreparedStatement inst = lig .prepareStatement("SELECT ph.Produtos_idProdutos,…
-
1
votes2
answers81
viewsQ: Is it possible to make two Selects in a Try?
try { Connection lig = DriverManager.getConnection("jdbc:mysql://localhost/gym", "root", "0000"); PreparedStatement inst = lig.prepareStatement("SELECT * FROM produtos_has_historico WHERE…
-
1
votes0
answers50
viewsQ: eclipse database connection
btnLogIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { Connection lig = DriverManager.getConnection( "jdbc:mysql://localhost/gym", "root", "");…