update : 2015.11.03
php.shukuma.com검색:
|
cubrid_affected_rows(PECL CUBRID >= 8.3.0) cubrid_affected_rows — Return the number of rows affected by the last SQL statement 설명
int cubrid_affected_rows
([ resource
$conn_identifier
] )
int cubrid_affected_rows
([ resource
$req_identifier
] )The cubrid_affected_rows() function is used to get the number of rows affected by the SQL statement (INSERT, DELETE, UPDATE). 인수
반환값Number of rows affected by the SQL statement, when process is successful. -1, when SQL statement is not INSERT, DELETE or UPDATE.
예제Example #1 cubrid_affected_rows() example
<?php 위 예제의 출력: Rows deleted: 5 |