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 > Sybase > How to Merge data of type TEXT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-11, 15:16
arunKM arunKM is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
Question How to Merge data of type TEXT

In Sybase, I need to merge the data from all the rows of a specific column, which is of type TEXT. I mean combine all the values from TEXT type column to a single value of TEXT type.
Is there a way to achieve it?

Thanks
Arun:
Reply With Quote
  #2 (permalink)  
Old 07-22-11, 00:35
pradyut.dhara pradyut.dhara is offline
Registered User
 
Join Date: May 2011
Posts: 28
Hi,
Typical string concatenation operator '+' is not applicable for text/image datatype. So, the answer is there is no direct way. Alternative way to take the columns in output then use awk/sed/perl to concatenate these two columns with text data type.
Please let me know if you find any sybase function or alternative way to do.
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