X
[XaToA]
for the select queries (select * from table) what is better for use:
Statement stmt = conection.createStatement();
stmt.executeQuery(sql);
or
PreparedStatement stmt = conection.PrepareStatement(sql);
stmt.execute();
what is better for use in web applications?
can you help me?
for the updates and inserts y use PreparedStatements
thanks
Statement stmt = conection.createStatement();
stmt.executeQuery(sql);
or
PreparedStatement stmt = conection.PrepareStatement(sql);
stmt.execute();
what is better for use in web applications?
can you help me?
for the updates and inserts y use PreparedStatements
thanks