Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

it's werid for the sql statements

$
0
0

Hi experts,

When I run the following SQL, it shows me "2 records"
update table_A set column_A = 'X' where a=b

but when I run "select count(*) from table_a where a=b", it shows me "3 records".

I'm confused. why are the records difference between select and update statement?

Thanks



Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>