Returns the name and number of the table from which a particular result column was derived.
LPCSTR dbtabsource (
PDBPROCESS dbproc,
INT colnum,
LPINT tabnum );
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:
dbtabsource is one of the DB-Library browse-mode functions. For a detailed discussion of browse mode, see Browse Mode in Programming DB-Library for C.
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 hard-coded into the program, this function is unnecessary.
The dbtabsource function can be called any time after dbresults.
dbcolbrowse | dbtabbrowse |
dbcolsource | dbtabcount |
dbqual | dbtsnewval |
dbresults | dbtsput |