diff options
Diffstat (limited to 'libmariadb/man/mysql_insert_id.3')
-rw-r--r-- | libmariadb/man/mysql_insert_id.3 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libmariadb/man/mysql_insert_id.3 b/libmariadb/man/mysql_insert_id.3 new file mode 100644 index 00000000..aa4b27e3 --- /dev/null +++ b/libmariadb/man/mysql_insert_id.3 @@ -0,0 +1,33 @@ +.\" Automatically generated by Pandoc 2.5 +.\" +.TH "mysql_insert_id" "3" "" "Version 3.3.1" "MariaDB Connector/C" +.hy +.SS Name +.PP +mysql_insert_id \- returns the auto generated ID used in last statement +.SS Synopsis +.IP +.nf +\f[C] +#include <mysql.h> + +my_ulonglong mysql_insert_id(MYSQL * mysql); +\f[R] +.fi +.SS Description +.PP +Returns the auto generated ID generated by a SQL statement (usually +INSERT) on a table for a column defined with AUTO_INCREMENT attribute. +.SS Parameters: +.PP +\f[C]mysql\f[R] is a connection identifier, which was previously +allocated by \f[B]mysql_init(3)\f[R] and connected by +\f[B]mysql_real_connect(3)\f[R]. +.SH Return value +.PP +Returns the value of the modified column with AUTO_INCREMENT attribute. +If the table doesn\[cq]t contain an auto_increment column or no +INSERT/UPDATE statement was executed, this function will return zero. +.SS See also +.IP \[bu] 2 +\f[B]mysql_query(3)\f[R] |