| Subject | Re: [firebird-php] All field's name of database | 
|---|---|
| Author | Lester Caine | 
| Post date | 2005-11-17T19:09:08Z | 
balogatt wrote:
This will give EVERY field in the database, just add a
WHERE RDB$RELATION_NAME = 'table' to filter it
or
WHERE RDB$SYSTEM_FLAG <> 1 to drop the system table entries
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.
            > Hi All!Looks about right, what is the problem.
>
> How to get all name of fields of the database?
> I try this:
>
> CREATE VIEW TABLE_CONSTRAINTS(
> FIELD_NAME)
> AS
> SELECT RDB$FIELD_NAME
> FROM RDB$RELATION_FIELDS
> ;
This will give EVERY field in the database, just add a
WHERE RDB$RELATION_NAME = 'table' to filter it
or
WHERE RDB$SYSTEM_FLAG <> 1 to drop the system table entries
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.