Help for this page

Select Code to Download


  1. or download this
    ROW_COUNT() returns the number of rows changed, deleted, or inserted b
    +y the last statement if it was an UPDATE, DELETE, or INSERT.
    
  2. or download this
    For UPDATE statements, the affected-rows value by default is the numbe
    +r of rows actually changed. If you specify the CLIENT_FOUND_ROWS flag
    + to mysql_real_connect() when connecting to mysqld, the affected-rows
    + value is the number of rows “found”; that is, matched by the WHERE c
    +lause.
    
  3. or download this
    Important
    ROW_COUNT() is not replicated reliably.
    
  4. or download this
    my $rows = $dbh->selectrow_array( 'select row_count()' );