CLI - Table name of colname after SQLDescribeCol

"Horstmann, Dirk" <[email protected]> Tue, 17 Jul 2007 12:53:35 +0200
Newsgroups gmane.comp.db.maxdb
Message-ID <4BF8FE6C7D791944BD0E98F7236489AD9C8887@DEEXVS02.wincor-nixdorf.com>
Hi.
I have a problem.
I need after...
 
select * from table1, table 2
...SQLDescribeCol(hstmt, i, colname, sizeof(colname), &colnamelen,
&coltype, &colSize,&colScale, NULL);
...
 
the table name from the colname.
 
SQLColAttribute(hstmt,i,SQL_DESC_TABLE_NAME
,tabname,sizeof(tabname),&l,NULL);
 
doesn't work. tabname = ""
 
How can i get the tablename ??

M.f.G. D. Horstmann