Subject | RE: [ib-support] ato increment / IDENTITY |
---|---|
Author | Ray Drew |
Post date | 2001-06-13T08:41:20Z |
-----Original Message-----
From: Frank Ingermann [mailto:frank.ingermann@...]
Sent: 12 June 2001 20:37
To: ib-support@yahoogroups.com
Subject: Re: [ib-support] ato increment / IDENTITY
stuff snipped
-----------------
in other tables you'll be wasting a lot of space if you use 8 bytes when 2
or 4 will do.
CIA UK
[Non-text portions of this message have been removed]
From: Frank Ingermann [mailto:frank.ingermann@...]
Sent: 12 June 2001 20:37
To: ib-support@yahoogroups.com
Subject: Re: [ib-support] ato increment / IDENTITY
>Hi Bernhard,-----------------
>>programmer@... wrote:
>> how to set up a field in a table that is to be used as primary key.
>> In MS SQL Server there is the IDENTITY keyword in MySQL there is auto
>> increment. What is in InterBase?
stuff snipped
-----------------
>btw. if you're using IB6, define the pk columns as NUMERIC(18,0) - that'sDon't define the pk columns bigger than you need to. If they're used as FK's
>because generators have grown from 32bit (=INTEGER) in IB5.6 to 64bit in
>IB6 - unfortunately there is no INT64 sql type in IB6, but NUMERIC(18,0)
>*is* actually a 64bit int.
in other tables you'll be wasting a lot of space if you use 8 bytes when 2
or 4 will do.
>hth,Ray Drew
>fingerman
CIA UK
[Non-text portions of this message have been removed]