DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(mysql.info) mysql-info

Info Catalog (mysql.info) mysql-hex-string (mysql.info) c-api-functions (mysql.info) mysql-init
 
 22.2.3.34 `mysql_info()'
 ........................
 
 `char *mysql_info(MYSQL *mysql)'
 
 *Description*
 
 Retrieves a string providing information about the most recently
 executed query, but only for the statements listed here. For other
 statements, `mysql_info()' returns `NULL'. The format of the string
 varies depending on the type of query, as described here. The numbers
 are illustrative only; the string contains values appropriate for the
 query.
 
    * `INSERT INTO ... SELECT ...'
 
      String format: `Records: 100 Duplicates: 0 Warnings: 0'
 
    * `INSERT INTO ... VALUES (...),(...),(...)...'
 
      String format: `Records: 3 Duplicates: 0 Warnings: 0'
 
    * `LOAD DATA INFILE ...'
 
      String format: `Records: 1 Deleted: 0 Skipped: 0 Warnings: 0'
 
    * `ALTER TABLE'
 
      String format: `Records: 3 Duplicates: 0 Warnings: 0'
 
    * `UPDATE'
 
      String format: `Rows matched: 40 Changed: 40 Warnings: 0'
 
 Note that `mysql_info()' returns a non-`NULL' value for `INSERT ...
 VALUES' only for the multiple-row form of the statement (that is, only
 if multiple value lists are specified).
 
 *Return Values*
 
 A character string representing additional information about the most
 recently executed query. `NULL' if no information is available for the
 query.
 
 *Errors*
 
 None.
 
Info Catalog (mysql.info) mysql-hex-string (mysql.info) c-api-functions (mysql.info) mysql-init
automatically generated byinfo2html