Returns the name of a table based on its number.
LPCSTR dbtabname (
PDBPROCESS dbproc,
INT tabnum );
A pointer to the null-terminated name of the specified table. This pointer is NULL if the table number is out of range or if the specified table is a SQL Server work table. For a description of work tables, see dbtabcount.
dbtabname 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.
A SELECT statement can generate a set of result rows whose columns are derived from several database tables. The database tables are specified by the FROM clause. dbtabname provides a way for an application to determine the name of each table involved in an ad hoc query. If the query has been hard-coded into the program, this function is unnecessary.
dbtabname can be called any time after dbresults.
dbcolbrowse | dbtabbrowse |
dbcolsource | dbtsnewlen |
dbqual | dbtsnewval |
dbresults | dbtsput |