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 > Usage of ROWID datatype

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-07, 07:52
sampathm_78 sampathm_78 is offline
Registered User
 
Join Date: Mar 2007
Posts: 20
Usage of ROWID datatype

Hi all,

Ver: DB2 8.1
OS: LINUX/Windows

can the datatype ROWID used in this particular version.

If so, please i need the syntax to use it.

Thanks,

M.Sampath.
DBA
Reply With Quote
  #2 (permalink)  
Old 04-10-07, 08:08
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
ROWID is not a built in datatype for DB2 for LUW. Where are you getting this from? And what does it do?

Andy
Reply With Quote
  #3 (permalink)  
Old 04-10-07, 17:36
Fumigator Fumigator is offline
Registered User
 
Join Date: Mar 2007
Posts: 24
It's available in DB2 for zOS v.8 so I assume it's available in other v.8 flavors.

As far as syntax, what are you asking specifically? It's just another column in your table and is used to directly access a row in certain situations.

Code:
CREATE TABLE MYTABLE
(TABLE_ROWID  ROWID NOT NULL GENERATED ALWAYS)

SELECT TABLE_ROWID
FROM MYTABLE

etc.etc..
Reply With Quote
  #4 (permalink)  
Old 04-10-07, 17:56
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by Fumigator
It's available in DB2 for zOS v.8 so I assume it's available in other v.8 flavors.
That is an incorrect assumption.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 04-11-07, 13:31
Fumigator Fumigator is offline
Registered User
 
Join Date: Mar 2007
Posts: 24
Whoops.....
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