HI
I have a query which populates a field by concatenating few other fields. For each field concatenated, the value should be displyed in a new line.
An exmaple
SELECT 'INSERT INTO Table1(
Title) values
(''Name: ' + ForeName + ' Surname: ' + SurName + ' Title: ' + Title +);'
FROM Table2
This returns
INSERT INTO Table1 (title) values (Name: XX SurName: YY Title: ZZ)
Is there a way enough space is created between each concatenated field so that they get displayed in new lines
Name: XX
SurName: YY
Title: ZZ
rather than Name: XX SurName: YY Title: ZZ
Char (13) does not seem to help.
Thanks
Nimisha
I have a query which populates a field by concatenating few other fields. For each field concatenated, the value should be displyed in a new line.
An exmaple
SELECT 'INSERT INTO Table1(
Title) values
(''Name: ' + ForeName + ' Surname: ' + SurName + ' Title: ' + Title +);'
FROM Table2
This returns
INSERT INTO Table1 (title) values (Name: XX SurName: YY Title: ZZ)
Is there a way enough space is created between each concatenated field so that they get displayed in new lines
Name: XX
SurName: YY
Title: ZZ
rather than Name: XX SurName: YY Title: ZZ
Char (13) does not seem to help.
Thanks
Nimisha