ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Updating DB2 database table that have BLOBS

Post new topic  Reply to topic
 Updating DB2 database table that have BLOBS « View previous topic :: View next topic » 
Author Message
neo_revolution
PostPosted: Mon Jan 12, 2004 7:02 pm    Post subject: Updating DB2 database table that have BLOBS Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

Hi,

I am getting input message as XML format and depending upon a field condition I need to update, delete or read databse.

One of the fields have BOLB data type. I wish to know how can I get "unique rowid" and "unique id" that the DB2 generates.

Thanks in advance.
Back to top
View user's profile Send private message Yahoo Messenger
neo_revolution
PostPosted: Tue Jan 13, 2004 5:56 am    Post subject: DB2 ROWID Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

Hi,

I myself got confused...

I wish to know, anyone have an idea about DB2 ROWID. Will they be automatically created? How can I access them? Are they unique?

Thanks
Back to top
View user's profile Send private message Yahoo Messenger
dhincali
PostPosted: Tue Jan 13, 2004 9:39 am    Post subject: Reply with quote

Novice

Joined: 29 Dec 2003
Posts: 22

Hi neo,

Regarding to ROWID, DB2 always automatically generates a sequentially incremented number and assigns that to the column when data is inserted to the table. The rows are not necessarily stored contiguously on disk but is is actually stored in the rows of the DB2 table.

Regarding a Unique ID generation, a unique RowID or an ID for every update,delete or insert based on the field condition in XML input format can be created. You can use this code snippet and incorporate it.

SET Environment.SEQ[] = PASSTHRU('select nextval for xxx.vseq from sysibm.sysdummy1');

where 'xxx' is schema name and 'vseq' is a stored procedure name.

'nextval' gives the next available number.
_________________
learning traveller
Back to top
View user's profile Send private message
neo_revolution
PostPosted: Tue Jan 13, 2004 9:46 am    Post subject: Updating DB2 database table that have BLOBS Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

Thanks for the reply ...

I did some research regarding ROWID... Rightnow its supported on Z os.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Updating DB2 database table that have BLOBS
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.