void mysql_close(MYSQL *sock);
#include <mysql.h>
static MYSQL *hConnexion;
...
hConnexion=mysql_init();
if (!hConnexion)
{
...
}
...
if (mysql_real_connect(hConnexion, "aix", "scott", "tiger", "mysql_aix", 0, NULL, (unsigned long)(CLIENT_MULTI_STATEMENTS|CLIENT_MULTI_RESULTS)))
{
...
}
...
mysql_close(hConnexion);
...