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 > Oracle > Split A Text

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-14-09, 04:53
UtOkbOlinAO UtOkbOlinAO is offline
Registered User
 
Join Date: Jul 2009
Posts: 11
Split A Text

hi,

just want to know how to split this text string "HAROLD,VINCENT,MARY,JOY"

and store it data into 4 variables namely name1, name2, name3 and name4

name1 := HAROLD;
name2 := VINCENT;
name3 := MARY;
name4 := JOY;

in an SQL query?

Thanks,
Reply With Quote
  #2 (permalink)  
Old 07-14-09, 05:22
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
INSTR and SUBSTR functions might help.
Reply With Quote
  #3 (permalink)  
Old 07-15-09, 23:02
UtOkbOlinAO UtOkbOlinAO is offline
Registered User
 
Join Date: Jul 2009
Posts: 11
thanks for the help... got it..
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