know kind of Type FB2.1

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
calou
Posts: 116
Joined: Tue 27 May 2008 12:46

know kind of Type FB2.1

Post by calou » Tue 26 Aug 2008 10:16

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

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 27 Aug 2008 09:01

IBDAC does not have such feature.

zd
Posts: 78
Joined: Sun 01 Jul 2007 13:16

Post by zd » Fri 29 Aug 2008 12:31

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

lucenty
Posts: 2
Joined: Wed 30 Apr 2008 07:38

Post by lucenty » Wed 08 Oct 2008 07:42

Execute query like this:

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

Good Luck!

Post Reply