Re: About Bind Data

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Steven Wee wrote:
> I used the SQL like:¡±select * from TestDB;¡±, I don¡¯
> t know how many columns in the result set, so I want use for() to bind
> the data, how can I do it?

http://www.freetds.org/userguide/samplecode.htm#E.G.SAMPLECODE.DBLIB.FETCH

All the APIs have something similar to dbnumcols().  

HTH.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.