Sql Query中的新行

如何在Sql Query中获取新行或换行符?
Pinal Dave在他的博客中解释得很好。

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

DECLARE @NewLineChar AS CHAR(2) = CHAR(13) + CHAR(10)
PRINT ('SELECT FirstLine AS FL ' + @NewLineChar + 'SELECT SecondLine AS SL')
http://stackoverflow.com/questions/1085662/new-line-in-sql-query

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:Sql Query中的新行