Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFTABLE Can One Field Feed Many Columns

Status
Not open for further replies.

metaphiz

Programmer
Jun 30, 2004
91
US
I'm trying to divide one database field across many columns without cutting off words in the middle, like on this page:


I want to see if <cftable> will provide a solution. The tricky part is all the text is in one field, so <cftable> would have to be able to determine where to cut off the string so that no words are truncated.
 
This can probably be accomplished with your SQL.
depending on your database you may be able to use SCALAR functions that will allow you to split a text field up into multiple fields thus feeding <cftable> multiple fields to populate your columns with.

some of the SCALARS that I know of are:
MID(c,start[,end])
LEN(c)
INSTR(c)
LEFT(c,number_of_char)
RIGHT(c,number_of_char)

where "c" is the name of your database field.

I hope that helps
Travis Hawkins
BeachBum Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top