Changes between Version 8 and Version 9 of Docs/Prog/Manual/ApplicationLibraries/Database/MySQLclient
- Timestamp:
- 02/04/13 09:41:23 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/Database/MySQLclient
v8 v9 54 54 } 55 55 56 //printf("query success\n");57 58 56 int rows_affected = (int) mysql_affected_rows(conn); 59 57 60 58 printf("affected %d\n", rows_affected); 61 59 62 if(rows_affected < 1) // select, show60 if(rows_affected < 1) // SELECT or SHOW will now have any rows affected, so display query results 63 61 { 64 62 res = mysql_use_result(conn); 65 //printf("rows %d filuelds %d eof %d\n", res->row_count, res->field_count, res->eof);66 67 63 int cnt = 0, i; 68 64 … … 77 73 if(i > 50) 78 74 break; 79 printf("%s,", res->fields[i].name); 75 76 printf("%s,", res->fields[i].name); 80 77 } 81 78 printf("\n"); … … 84 81 if(cnt > 10000) 85 82 break; 86 //printf("%d ", cnt); 83 87 84 for(i = 0; i < (int)res->field_count; i++) 88 85 { … … 90 87 if(i > 50) 91 88 break; 92 89 printf("%s,", row[i]); 93 90 } 94 91 printf("\n");