A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Sep 06, 2004
Sep 09, 2004 02:00:00
What is the statement to execute update.
ResultSet columns = statement.executeUpdate("SELECT * FROM Member");
Joined: Aug 15, 2004
Sep 09, 2004 02:35:00
read the docs. executeUpdate() returns you an int not a ResultSet.
and update means DMLs (insert, update, delete). for select statement we use executeQuery() rather than executeUpdate().
insert, update, delete
i hope it would be clear now.
Joined: Oct 18, 2000
Sep 09, 2004 05:45:00
Since this has nothing to do with JSPs, I'm moving it to the
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: update button
Which statement is true regarding initialization parameter
doubt in a mock exam question
How to ?
Is Fowarder-receiver promiscuous?
How Multiple Inheritance can be achieved in Java ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014