update : 2015.11.03
php.shukuma.com

검색:
 
 
Returns the number of records affected by the query

mssql_rows_affected

(PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)

mssql_rows_affectedReturns the number of records affected by the query

설명

int mssql_rows_affected ( resource $link_identifier )

Returns the number of records affected by the last write query.

인수

link_identifier

A MS SQL link identifier, returned by mssql_connect() or mssql_pconnect().

반환값

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)';
?>