msqlListTables()
m_result * msqlListTables ( sock )
H
int sock ;
Once a database has been selected using msqlInitDB(), a list of the
tables defined in that database can be retrieved using
msqlListTables(). As with msqlListDBs(), a result handle is
returned to the calling program and the names of the tables are
contained in data rows where element [0] of the row is the name of
one table in the current database. The result handle must be freed
when it is no longer needed by calling msqlFreeResult().
msqlListFields()
m_result * msqlListFields ( sock , tableName ) ;
H
int sock ;
char * tableName;
Information about the fields in a particular table can be obtained
using msqlListFields(). The function is called with the name of a
table in the current database as selected using msqlSelectDB()
and a result handle is returned to the caller. Unlike msqlListDBs()
and msqlListTables(), the field information is contained in field
structures rather than data rows. It is accessed using msqlFetchField().
The result handle must be freed when it is no longer needed by
calling msqlFreeResult().
msqlListIndex()
m_result * msqlListIndex ( sock , tableName , index ) ;
H
int sock ;
char * tableName;
char * index;
The structure of a table index can be obtained from the server using the
msqlListIndex() function. The result table returned contains one field.
<
New Page 1
Godaddy Web Hosting