Page 1 of 1

know kind of Type FB2.1

Posted: Tue 26 Aug 2008 10:16
by calou
Hello,

I would like to know the type of a field in a table (char decimal date ...)
How could i do?

Thank you for help

Regards

Posted: Wed 27 Aug 2008 09:01
by Plash
IBDAC does not have such feature.

Posted: Fri 29 Aug 2008 12:31
by zd
You don't need any components for that.

You can make a simple select statement to get the information from the Firebird system tables.

I don't know which system table holds field types, look it up.

Here is some example code, this selects stored procedure data from the database:
SELECT * FROM RDB$PROCEDURES

So you'll be looking at RDB$... tables!

Good luck,
Zd

Posted: Wed 08 Oct 2008 07:42
by lucenty
Execute query like this:

select rdb$field_source from rdb$relation_fields where rdb$relation_name = :TableName and rdb$field_name=:FieldName

Good Luck!