PHP Function List
mysql_affected_rows() doesn't exist. Closest matches:
- mysql_affected_rows
- msql_affected_rows
- fbsql_affected_rows
- pg_affected_rows
- maxdb_affected_rows
- ibase_affected_rows
- ifx_affected_rows
- sybase_affected_rows
- mysql_fetch_row
- maxdb_stmt_affected_rows
- msql_fetch_row
- cubrid_affected_rows
- mssql_fetch_row
- mssql_rows_affected
- mysql_free_result
- mysql_num_rows
- fbsql_fetch_row
- mysql_unbuffered_query
- msql_free_result
- mysql_field_seek
Site Search Results
-
当使用 UPDATE 查询,MySQL 不会将原值和新值一样的列更新。这样使得 mysql_affected_rows() 函数返回值不一定就是查询条件所符合的记录数,只有真正被修改的记录数才会被返回。
-
mysql_affected_rows() reports on the number of rows affected by an in-place operation on the database, but mysql_num_rows() returns the number of rows in a MySQL record set (which is held by PHP after MySQL has generated it).
-
トランザクションを使用する場合には、コミット後ではなく INSERT, UPDATE, DELETE クエリの後に mysql_affected_rows() をコールする必要があります。 注意: SELECT ステートメント
-
mysql_affected_rows — 取得前一次 MySQL 操作所影响的记录行数 mysql_client_encoding — 返回字符集的名称 mysql_close — 关闭 MySQL 连接 mysql_connect — 打开一个到 MySQL 服务器的连接
-
Si vous utilisez des transactions, vous devez appeler mysql_affected_rows() après votre requête INSERT, UPDATE ou DELETE et non après le COMMIT. Note: Requêtes SELECT Pour obtenir le nombre de lignes retournées par un SELECT, il est ...
-
mysqli::$affected_rows - ManualOn "INSERT INTO ON DUPLICATE KEY UPDATE" queries, though one may expect affected_rows to return only 0 or 1 per row on successful queries, it may in fact return 2. From Mysql manual: "With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the ...
-
假定查询成功,可以调用 mysql_num_rows() 来查看对应于 SELECT 语句返回了多少行,或者调用 mysql_affected_rows() 来查看对应于 DELETE,INSERT,REPLACE 或 UPDATE 语句影响到了多少行。
-
As a solution to the problem pointed in the post reffering to mysql_affected_rows() returning 0 when you are making an update query and the fields are not modified although the query is valid, i'm posting the following function.
-
echo mysql_affected_rows (). "<br>"; echo mysql_insert_id (). "<br><br>"; // same record, database is unique on 'num' $sql = "insert ignore into sometable set num=10"; mysql_query ($sql) or die(); echo mysql_affected_rows (). "<br>";
-
mysql_client_encoding - Manualmysql_close mysql_affected_rows ... Notes Note: Suggested alternatives Use of this extension is discouraged. Instead, the MySQLi or PDO_MySQL extension ...

Other forms of search
To search the string "mysql_affected_rows()" using other options, try searching:
- Only the documentation
- Only this mirror
- The entire php.net domain
- pear.php.net
- pecl.php.net
- The Bug DB
- php-general mailing list
- Internals mailing list
- Documentation mailing list
For a quick overview over all documented PHP functions, click here.
