RE: [sqlite] getting table column names and types programaticly

2005-03-24 Thread Cariotoglou Mike
qlite] getting table column names and types > programaticly > > Jim Dodgen wrote: > > Anyone know how I can query the field names and types for a > given table? > > Jim, > > select sql from sqlite_master where type="table" and name="gigo"

Re: [sqlite] getting table column names and types programaticly

2005-03-24 Thread Kurt Welgehausen
> Anyone know how I can query the field names and types for a given table? pragma table_info(tablename)

Re: [sqlite] getting table column names and types programaticly

2005-03-24 Thread Gerry Snyder
Jim Dodgen wrote: Anyone know how I can query the field names and types for a given table? Jim, select sql from sqlite_master where type="table" and name="gigo" will get something like: create table gigo(a,b,c) which includes the field names, and would include the types if I had used any. Gerry

[sqlite] getting table column names and types programaticly

2005-03-24 Thread Jim Dodgen
Anyone know how I can query the field names and types for a given table?