[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-win32
Subject:    Client question
From:       Michael Widenius <monty () monty ! pp ! sci ! fi>
Date:       1999-04-10 22:26:58
[Download RAW message or body]


>>>>> "Dennis" == =?iso-8859-1?Q?Dennis Thrys=F8e?= <iso-8859-1> writes:

Dennis> Hi,
Dennis> Which would be the best way to determine the number of fields in a given
Dennis> MYSQL_RES? The mysql_num_fields (which returns MYSQL_RES.field_count) seems
Dennis> to always be zero. This is to determine how many char* to take from the
Dennis> MYSQL_ROW.

Dennis> TIA,

Dennis> -qabi

Hi!

mysql_num_fields should always work;  If not, you are doing something
wrong (like using include files from an older MySQL version)

Check the code in mysqladmin.c how to use this!

Regards,
Monty

---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail win32-thread81@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail win32-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic