Subject | Re: [firebird-support] A couple of questions |
---|---|
Author | Jerome Bouvattier |
Post date | 2003-11-23T10:29:09Z |
Hello and welcome,
SELECT FIRST 1 * FROM table
or a
SELECT * FROM table where <condition_returning_0_rows>
if you want to loop thru fields objects.
You could also query the system tables
SELECT RDB$FIELD_NAME, ... FROM RDB$RELATION_FIELDS
WHERE RDB$RELATION_NAME = '<your case-sensitive table name>'
and loop thru records.
Regards.
--
Jerome
> 1) How can I retrieve the field names list from a table. I mean,Use the following syntax
> using an access driver i can easily use "SELECT TOP 1 * FROM table"
> and then , with ADO, just loop into the recordset fields object to
> have the field names. How could I do with ADO And Firebird, since
> either the Shema GetColumns seems to work?
SELECT FIRST 1 * FROM table
or a
SELECT * FROM table where <condition_returning_0_rows>
if you want to loop thru fields objects.
You could also query the system tables
SELECT RDB$FIELD_NAME, ... FROM RDB$RELATION_FIELDS
WHERE RDB$RELATION_NAME = '<your case-sensitive table name>'
and loop thru records.
> 2) Using the free FireBird/Interbase ODBC Driver, if i retreive aCan't help here. You might want to ask on the FB ODBC driver list.
> DECIMAL (or NUMERIC) field (size 18, base 4) I always get back a 0
> value, no matter what is the actual value. Changing the driver to the
> Easysoft one, make things work. Any suggestion?
Regards.
--
Jerome