SQLDBC::Statement::setBatchSize

Prototypes

SQLDBC_Retcode SQLDBC::Statement::setBatchSize(SQLDBC_UInt4 rowarraysize);

Description

Fixe la taille des tableaux des paramètres à rowarraysize lignes.

Le résultat est SQLDBC_OK en cas de succès.

Exemple

#include <SQLDBC.h>

#include <SQLDBC.h>

static SQLDBC_Statement *hOrdreSql;
static long E;
static SQLDBC_Length IndicateurE;
static long TableE[256];
static SQLDBC_Length IndicateurTableE[256];
static char C[20];
static SQLDBC_Length IndicateurC;
static char TableC[256][20];
static SQLDBC_Length IndicateurTableC[256];

...
if (hOrdreSql->bindParameter(2, SQLDBC_HOSTTYPE_INT4, (void *)TableE, 0, IndicateurTableE, sizeof(long))!=SQLDBC_OK) ... if (hOrdreSql->bindParameter(2, SQLDBC_HOSTTYPE_ASCII, (void *)TableC, 0, IndicateurTableC, sizeof(char)*20)!=SQLDBC_OK) ... if (hOrdreSql->setBatchSize(256)!=SQLDBC_OK) ...

Voir aussi

SQLDBC::Statement::bindParameter pour lier un paramètre d'un ordre Sql.