The method is used for executing a query. It returns true if the ResultSet object is the query return. It returns one ResultSet object.

Example

                                        

Int m = st.executeUpdate(sql);

If (m==1)

System.out.println (“inserted successfully: “+sql);

Else

System.out.println (“insertion failed”);

Suggest An Answer

No suggestions avaliable!