PDA

View Full Version : A MySQL api question


Trigonal Planar
08-23-2003, 01:23 PM
I'm integrating SQL database access into a C++ project via the MySQL api.

What I need is a way to extract the column names from a given table - does anyone know how to do this?

Trigonal Planar
08-23-2003, 07:15 PM
C'mon, someone must know how to do this!

friedo
08-23-2003, 10:15 PM
mysql_fetch_field (http://www.mysql.com/doc/en/mysql_fetch_field.html)
mysql_fetch_fields (http://www.mysql.com/doc/en/mysql_fetch_fields.html)