Dears,
My code is :
void CMysql::ReadingFld(const char *tblname)
{
MYSQL_RES *fldres;
int i;
fldres=mysql_list_fields(&connection2db,tblname,"%");
ptr.srcFldNumber=mysql_num_fields(fldres);
FieldsRow=mysql_fetch_fields(fldres);
for (i=0;ihttp://lists.mysql.com/mysql
To unsubscribe:http:
>Description:
The mysql_fetch_field() function returns a MYSQL_FIELD structure with
the flags field set to a value including NOT_NULL_FLAG even if the field
is an aggregate, if that aggregate is on the primary key.
If there are no rows in the table, then MAX(pri_key_column) will return
N
Is there a way I can save the members that I manipulate in the
MYSQL_FIELD struct?
MYSQL_FIELD *field;
field->name = "newcolumnname";
How could I save this as the new column name? Thanks
--
Romans 12:9 "Let love be without hypocrisy. Abhor what is evil. Clin
Good Day!
I am working on the MySQL section of a reference manual for PHP and need to
confirm one small detail on the length of SET type columns.
It looks like the MYSQL_FIELD->length value for SET columns is the length of
a string containing the SET elements separated by commas.
Is this ri