Which method is used to perform DML statements in JDBC?

Options
- execute()
- executeQuery()
- executeUpdate()
- executeResult()


CORRECT ANSWER : executeUpdate()

Discussion Board
DML

Data manipulation language (DML) provides statements like selecting, inserting, deleting and updating data in a database. Component of DML includes performing read-only queries of data. SQL is also known as DML or data manipulation language as it is used retrieve and manipulate data in a relational database.

executeupdate() is used to perform as Data manipulation language, it is used to modify stored data but not the schema or database objects. Manipulation takes place in form of persistent database objects, e.g., tables or stored procedures, via the SQL schema statements,rather than the data stored within them.

Rohit Sharma 09-21-2014 04:23 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement