Questions tagged [rows-affected]

The number of rows affected by executing a SQL Query

The number of rows affected by executing a SQL Query.

The @@ROWCOUNT variable will return the number of rows affected by the last executed query in SQL Server

65 questions
0
votes
2 answers

find number of updates done in PHP

What I am doing is editing the data of MySQL data using PHP using form. I have two text field as name and mobile number. When I click on edit, I get same data in text field and below I have Save button. When I do changes I get response as done, but…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
0
votes
1 answer

mysqli nuw_rows always returns 0

I've gone through forums and posts, but i just can't seem to figure out what i'm doing wrong here. i tried $mysqli->num_rows first to get the affected rows, but appearantly that only works for SELECT statements. Unfortunately, ..->affected_rows also…
user1666419
  • 77
  • 1
  • 6
0
votes
1 answer

How to check if mysql queries succeeded

After executing a couple of mysql queries, how can I determine if all where successful? I know I can build an array with data ( mysql_error() ) from each mysql_query and then analyze the array, but isn't a better way? Because mysql_affected_rows()…
Alex
  • 7,538
  • 23
  • 84
  • 152
-1
votes
1 answer

Getting the rowsAffected output in log analytics

I'm trying to get the rows affected output from an sql server stored procedure activity in azure data factory to azure log analytics. I can currently get the rowsCopied and rowsRead from the copy activity. Would appreciate any help.
-2
votes
1 answer

Why the query still run when the condition didn't meet?

I got the following testing SQL statement that link to the database. I do not have any record in the database that matches 900 but it returns the results = 1 instead of 0. Can I know what is the reason for this? $query = "update mytable set verify =…
nmm
  • 117
  • 1
  • 10
1 2 3 4
5