Skip to Content.
Sympa Menu

freetds - Re: [freetds] About Bind Data

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] About Bind Data
  • Date: Fri, 27 Feb 2009 00:18:17 -0500

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




Archive powered by MHonArc 2.6.24.

Top of Page