Last active
December 23, 2015 09:23
-
-
Save relyky/5936d765d85fbd12ee3b to your computer and use it in GitHub Desktop.
T-SQL 換行字元, CHAR(13), CHAR(10), new line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- new line : | |
| -- \r CHAR(13) | |
| -- \n CHAR(10) | |
| -- | |
| DECLARE @MEMO NVARCHAR(MAX); | |
| SET @MEMO = N'line 1 line 1 line 1 ' | |
| PRINT @MEMO | |
| SET @MEMO = @MEMO + CHAR(13) + CHAR(10) + N'new line new line new line ' | |
| PRINT @MEMO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment