PDA

View Full Version : DML Statements in java 2011



saneha
04-24-2011, 09:46 PM
my question is that we learn that java handles DML statements(update, insert and delete statements) with the help of two methods.i.e. by using conventional java statements and by ResultSet method.

my question is that as compare to both of these methods, which one used in which specific situation.

Vuhelper
04-24-2011, 09:46 PM
Statement and Result object sets both are used together to get result



Statement

This object is used for executing a static SQL statement and returning the results it produces



ResultSet

A table of data representing a database result set, which is usually generated by executing a statement that queries the database.