Справочное руководство по MySQL версии 4.1.1-alpha


         

unsigned int num_fields; unsigned int


MYSQL_ROW row; unsigned long *lengths; unsigned int num_fields; unsigned int i;
row = mysql_fetch_row(result); if (row) { num_fields = mysql_num_fields(result); lengths = mysql_fetch_lengths(result); for(i = 0; i < num_fields; i++) { printf("Column %u is %lu bytes in length.\n", i, lengths[i]); } }

Содержание  Назад  Вперед