in reply to dbcolname & dbnumcols

Additionally, read the section on DBI STATEMENT HANDLE OBJECTS and look over the subsection Statement Handle Attributes, paying particular attention to NUM_OF_FIELDS, NAME, etc.

...roboticus