Subject | Re: [firebird-support] Column Types |
---|---|
Author | Mark Rotteveel |
Post date | 2012-04-28T07:51:04Z |
On 27-4-2012 12:03, AngelBlaZe wrote:
(you can interpret it as: move the decimal 5 positions to the left).
for field types btw).
--
Mark Rotteveel
>Scale is a negative value, not positive (so a DECIMAL(10,5) has scale -5
> for example
> a decimal(10,5) column
> would have using the query above:
> type = 16 And subtype = 2
> precision = 10
> scale = 5
(you can interpret it as: move the decimal 5 positions to the left).
> some common types:Table RDB$TYPES contains a mapping of ids to their type name (not just
> typemap(8) = ddTypes.aInteger
> typemap(37) = ddTypes.aString
> typemap(7) = ddTypes.aSmallInt
> typemap(16) = ddTypes.aDecimal
> typemap(12) = ddTypes.aDate
> typemap(35) = ddTypes.aDateTime
> typemap(261) = ddTypes.aByte
for field types btw).
--
Mark Rotteveel