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 > Separator

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-12, 01:14
rajshri rajshri is online now
Registered User
 
Join Date: Dec 2011
Posts: 14
Red face Separator

is there any inbuilt function of separating in db2 8.2.
as ARRAY TYPE is not working with db2 8.2.
so i will pass array of string separated by comma(,) n that function will identifies comma(,) and split that word..
no length is fix for data..
for eg..
i will pass this list n some function will separate it.
i want to separate (queen,king,joker,db2,dbadmin,hello,welcome)...

thank you.
Reply With Quote
  #2 (permalink)  
Old 01-27-12, 02:13
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You can have a look here how to write such a function: Parsing Strings in SQL
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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