gurupot
September 20th, 2005, 02:06 PM
Hi,
When I execute a simple SQL statement like "SELECT * FROM TAB1 WHERE PIN = '123'", I get 1 row displayed.
But when I do an update with the same condition using "UPDATE TAB1 SET BALANCE = '1000' WHERE PIN = '123'", It shows me the following output.
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
Why is it showing 3 rows are updated. Why is it not showing these 3 rows when I do a select.
Can anyone explain me this. I am using a SQL server.
When I execute a simple SQL statement like "SELECT * FROM TAB1 WHERE PIN = '123'", I get 1 row displayed.
But when I do an update with the same condition using "UPDATE TAB1 SET BALANCE = '1000' WHERE PIN = '123'", It shows me the following output.
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
Why is it showing 3 rows are updated. Why is it not showing these 3 rows when I do a select.
Can anyone explain me this. I am using a SQL server.