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 > parsing text data type for CHAR(10)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-11, 08:51
GJBushman GJBushman is offline
Registered User
 
Join Date: Aug 2011
Location: Washington, DC
Posts: 3
parsing text data type for CHAR(10)

Running ASE 11.9. I have a text data type (column = longvalue) that is used to store multiple fields of data separated by LF. I need to be able select a specific field/string from within the longvalue column. To do that I assume I have to count the LF's and then select my string from that position. I'm not an SQL expert and don't know how to count the LF/Char(10). Any hints would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 09-01-11, 15:52
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
You will probable end with some messy combination of substring(charindex
Reply With Quote
Reply

Tags
char(10), text data type

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