mssql_rows_affected
(PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)
mssql_rows_affected — Returns the number of records affected by the query
Warning
This function was REMOVED in PHP 7.0.0.
Alternatives to this function include:
说明
mssql_rows_affected (
resource
$link_identifier
) :
int
Returns the number of records affected by the last write query.
返回值
Returns the number of records affected by last operation.
范例
Example #1 mssql_rows_affected() example
<?php
// Delete all rows in a table
mssql_query('TRUNCATE TABLE [php].[dbo].[persons]');
echo 'Deleted ' . mssql_rows_affected($link) . ' row(s)';
?>