Click here to Skip to main content
15,904,156 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello frinds i have query in sql like

select ename, eadd+', '+city+' - '+pincod from Table1


and the result is..

Name Addres
Amit Rajinra Park, Ambala - 133001
Sumit Mahesh Nagar, Ambala - 133001

but i want to display result like this

Name Addres
Amit Rajinra Park,
Ambala - 133001
Sumit Mahesh Nagar,
Ambala - 133001


plz help me how to use
tag like html in sql query

thanks in advance

Parveen Rathi
Posted
Updated 27-Apr-11 19:38pm
v3

1 solution

You got use line break or carriage return.
T-SQL Script to Insert Carriage Return and New line feed[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900