# how know the rows effect when using update sql

**URL:** <https://techcommunity.softwareag.com/t/how-know-the-rows-effect-when-using-update-sql/186943>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [February 16, 2016, 10:43am UTC](https://techcommunity.softwareag.com/t/how-know-the-rows-effect-when-using-update-sql/186943 "2016-02-16T10:43:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tagan\_Anto](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@Tagan\_Anto](https://techcommunity.softwareag.com/u/Tagan_Anto)\
**Post date:** [February 16, 2016, 10:43am UTC](https://techcommunity.softwareag.com/t/how-know-the-rows-effect-when-using-update-sql/186943/1 "2016-02-16T10:43:18Z")

</div>

hi all.  
i’m a new member of this forum. i’m italian. sorry for my english.  
can I know how many rows I updated, with the command sql update?  
when I use  
update _table_ set _filed_ = _value_ where keyid = x  
in other languages i have the _number of rows effect_. In Natural?

ps: the tables are oracle.

thank you.

---

<div class="post-metadata">

**Author:** ![sreekanth\_aduri](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/sreekanth_aduri/32/332_2.png) [@sreekanth\_aduri](https://techcommunity.softwareag.com/u/sreekanth_aduri)\
**Post date:** [February 16, 2016, 12:59pm UTC](https://techcommunity.softwareag.com/t/how-know-the-rows-effect-when-using-update-sql/186943/2 "2016-02-16T12:59:30Z")

</div>

Hi,

I think you should write stored procedure for this.

Please refer following link.

> <https://stackoverflow.com/questions/1103260/return-number-of-rows-affected-by-update-statements>

Regards,  
Sreekanth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:35pm UTC](https://techcommunity.softwareag.com/t/how-know-the-rows-effect-when-using-update-sql/186943/3 "2021-04-02T15:35:23Z")

</div>


