mysql_fetch_row,是計算機用語。用於數值檢索。
基本介紹
- 中文名:mysql_fetch_row
- 頭檔案:include <mysql.h>
- lib庫:libmysql.lib和libmysql.dll
- 函式說明:MYSQL_ROW mysql_fetch_row
頭檔案
lib庫
函式說明
函式舉例
MYSQL_ROW row;unsigned int num_fields;unsigned int i;num_fields = mysql_num_fields(result);while ((row = mysql_fetch_row(result))){ unsigned long *lengths; lengths = mysql_fetch_lengths(result); for(i = 0; i < num_fields; i++) { printf("[%.*s] ", (int) lengths[i], row[i] ? row[i] : "NULL"); } printf("\n");}