return number of affected records after update

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

return number of affected records after update

Post by inageib » Thu 25 Nov 2010 21:53

Hi,
I wonder if there is a way to return the number of affected records after execute UPDATE SQL without using two SQL on for UPDATE and another for SELECT

in both FB and IB

Thanks

AndreyZ

Post by AndreyZ » Fri 26 Nov 2010 07:50

Hello,

You can use the RowsAffected property that is used to indicate the number of rows which were inserted, updated, or deleted during the last query operation. For more information please read IBDAC Reference Manual.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Post by inageib » Fri 26 Nov 2010 15:55

that is great, thanks

Post Reply