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

Selecting multiple rows to output text

Status
Not open for further replies.

jimoo

Programmer
Jun 2, 2003
1,111
US
I have a db with a one to many relationship. I want to extract the records of the child table to text. They are basically user comments. Each record is a different comment. I plan to archive these comment in another format.

Can anyone provide a solution to select all the records, and in addition place a new line and maybe a seperator.



Example: (Assume field is comment)

Select table.comment +CHAR(13)+CHAR(10) + '---------' from table

Again, I need the output to text (or excel.

Thanks in advance.



Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top