My suggestion is you can first fetch records matched that criteria and show those record to user and after that perform the
update operation, when you will call sql update query it will return you...