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 > Rowid in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-03, 22:56
eskaysem eskaysem is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
Rowid in db2

Hi,
Can the concept of rowid cud be used in an existing table? If so, pls let me know some info abt it. I'm using DB2 7.2 on 0S390.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-16-03, 23:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I don't believe that it can be added to an existing table because adding a column to an existing table requires that nulls be allowed (the initial value right after the ALTER TABLE). ROWID requires a NOT NULL specification and DEFAULT cannot be used.

So you would have to unload the table, drop the table, create the table with the ROWID column, and then load the table.
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