Returns the name and number of the table from which a particular result column was derived.
LPCSTR dbtabsource (
PDBPROCESS dbproc,
INT colnum,
LPINT tabnum );
where
A pointer to the name of the table from which this result column was derived. A NULL return value can mean one of the following:
The dbtabsource function is one of the DB-Library browse-mode functions. For a detailed discussion of browse mode, see Browse Mode in Programming with DB-Library.
The dbtabsource function allows an application to determine which tables provided the columns in the current set of result rows. This information is valuable when using dbqual to construct WHERE clauses for UPDATE and DELETE statements based on ad hoc queries. If the query has been hardcoded into the program, this function is unnecessary.
The dbtabsource function can be called any time after dbresults.
dbcolbrowse, dbcolsource, dbqual, dbresults, dbtabbrowse, dbtabcount, dbtabname, dbtsnewlen, dbtsnewval, dbtsput; Bulk-Copy Functions