Forums Register Login

exact differenece ??

+Pie Number of slices to send: Send
What is the difference between executeQuery() and executeUpdate()
I mean what database operations possible in both the cases ?
+Pie Number of slices to send: Send
I think Javadoc is enough to explain the difference !!

See this !
+Pie Number of slices to send: Send
Technically speaking: you can execute whatever you want. JDBC will not validate your queries. The general rule of thumb though is to use executeQuery for SELECT statements and executeUpdate for INSERT/UPDATE statements. Also, look at the return value of each in the API as Sagar suggested.
[ July 01, 2008: Message edited by: Scott Selikoff ]
machines help you to do more, but experience less. Experience this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 765 times.
Similar Threads
WA #2 ..... word association
Software Life
I Always Wanna Post Java Related Topics
Unregistered?
World Market
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:03:55.