tags:

views:

1770

answers:

3

How you get new line or line feed in Sql Query ?

+3  A: 

Hi,

Pinal Dave explains this well in his blog.

http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/

SQL Baba
Thanks nice Blog and nice information my problem solve from this
KuldipMCA
+2  A: 

You could do Char(13) and Char(10). Cr and Lf.

Char() works in SQL Server, I don't know about other databases.

jvanderh
A: 

use CHAR(10) for New Line in SQL char(9) for Tab and Char(13) for Carriage Return

Vinit Prajapati