1.

What is the Execute method in Java?

Answer»

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”);



Discussion

No Comment Found