A)
->statement object has two important methods to submit SQL statements to the database server.
1) execute Update(String dml);
->this method is used to send INSERT, UPDARE, DELETE SQL statements to the DBMS, It returns “int”. That number represents the no. of rows affected in the database as a result of the submission of the SQL statement.
->If anything goes abnormal. This method raises SQL exception.
2) executeQuery (String drl);
->This method is meant for submitting SELECT statement to the DBMS and there by retrieving database data. If anything goes abnormal, this method also raises SQL Exception.
Comments
Post a Comment