Answer the question
In order to leave comments, you need to log in
MySQL: how to get data about the results of execution with a remote query as with a local query?
When a query is executed locally, mysql reports the number of rows modified, execution time, and so on after execution.
mysql> update testtable set comment='comment_new' where comment='comment_1';
Query OK, 1 row affected (0.03 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql --user username --password paswd -h 192.168.xx --database testdb -e "update testtable set comment='comment_new' where comment='comment_1';"
Answer the question
In order to leave comments, you need to log in
Look aside - mysqli_affected_rows (mysql_affected_rows, PDOStatement::rowCount)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question