Database Method

If we are not returning any records from the database, which method is to be used?

Questions by lavi_rajput

Editorial / Best Answer

Pendurti  

  • Member Since Sep-2008 | Sep 11th, 2008


There is a method called Execute Non Query. This method executes the Update, Delete etc. 

This does not return any rows but will give the number of rows affected.

Showing Answers 1 - 15 of 15 Answers

Pendurti

  • Sep 11th, 2008
 

There is a method called Execute Non Query. This method executes the Update, Delete etc. 

This does not return any rows but will give the number of rows affected.

Anandbprem

  • May 8th, 2009
 

You can use executeNonquery.

If your command is Insert, Update or Delete, executeNonquery returns an integer specifying the number of rows affected. Get it in an integer variable.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions