If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Query on SQL DDL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-08-03, 05:21
ranjir75 ranjir75 is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 13
Query on SQL DDL

Hi,

I just came across this SQL

CREATE TABLE EBRINQUIRY (
INQ_AGN DECIMAL(11) NOT NULL GENERATED ALWAYS
AS IDENTITY(
START WITH 1,
INCREMENT BY 1,
NO CACHE ,
NO CYCLE ),
BORWR_AGN DECIMAL(11),
DUNS_NBR DECIMAL(11),
SUBR_NBR INTEGER NOT NULL,
USER_ID INTEGER NOT NULL
);

Cud any one pls explain me what is the significance of NO CACHE and NO CYCLE in the above DDL ?
__________________
Thanks
Ranjith
Reply With Quote
  #2 (permalink)  
Old 08-08-03, 06:02
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
INQ_AGN is an identity column (i.e. serial datatype).

It won't cycle, so it won't go back to 1 once it has reached its max value.

And, it isn't cached so its current value will always have to be retrieved from the database.
Reply With Quote
  #3 (permalink)  
Old 08-09-03, 00:37
ranjir75 ranjir75 is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 13
Thxs for the explanation
__________________
Thanks
Ranjith
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On