Documentation Home
MySQL 5.7 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.1Mb
PDF (A4) - 1.1Mb


6.4.15 mysql_stmt_init()

MYSQL_STMT *mysql_stmt_init(MYSQL *mysql)

Description

Creates and returns aMYSQL_STMT handler. The handler should be freed withmysql_stmt_close(), at which point the handler becomes invalid and should no longer be used.

See alsoSection 6.2, “C API Prepared Statement Data Structures”, for more information.

Return Values

A pointer to aMYSQL_STMT structure in case of success.NULL if out of memory.

Errors