one returns a ResultSet and the other does not. If you want a ResultSEt (eg from a query) then use that one.
Brian Mozhdehi
Ranch Hand
Joined: Aug 17, 2006
Posts: 81
posted
0
You may also call Statement.getResultSet() if you choose to use execute() and the statement produces a ResultSet. executeQuery() is a conveience method when running SELECT statements as you of course are looking for a Result set usually in this case.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.