Esegue una query con più record di risultato
Sintassi
BOOL mys_fetch_row(EH_MYSQL_RS psRS)
BOOL mys_fetch_row(F_MYSQL_SECTION *mySection, EH_MYSQL_RS psRS) [multithread]
Parametri
- psRS
[in] puntatore al Result Set
Valori di ritorno
Commenti
CHAR szStr[80];// PUNTATORE ALLA STRINGA
int num;// INTERO
EH_MYSQL_RS rsHit; // PUNTATORE AL RECORDSET
mys_queryarg(SESSIONE,QUERY); //ESECUZIONE DELLA QUERY
rsHit=mys_store_result(SESSIONE);
if (rsHit)
{
while (mys_fetch_row(SESSIONE,rsHit))
{
sprintf(szStr,"%s",mys_fldptr(rsHit,"STRINGA")); // COPIA VALORE STRINGA
num=mys_fldint(rsHit,"INTERO"); // COPIA VALORE INTERO
}
}