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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to concat entries in a text field

Status
Not open for further replies.

JobaBett

Programmer
Nov 30, 2004
4
CH
Hi out there

I would like to have a query concat the strings in one text field from all records in a table.

I'm looking for something like

SELECT SUMTEXT(textfieldName,';') FROM tableName;

to get "textvalue1;textvalue2;textvalue3" etc.

Any help appreciated. Simon
 
Hi r937.

Works like a charm!! Thanks!

Although, to concat numbers, i had to first convert them to char using

CONVERT(somefield,CHAR).

Thanks again! Great Forum!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top