Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit cbdbd8e

Browse files
authored
Merge pull request #11254 from WilliamAntonRohm/issue-2494
sql-docs issue 2494 -- line termination following backslash
2 parents e47e8b5 + 4fa8b22 commit cbdbd8e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/t-sql/language-elements/sql-server-utilities-statements-backslash.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Backslash (Line Continuation) (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/09/2017"
4+
ms.date: "07/25/2019"
55
ms.prod: sql
66
ms.prod_service: "database-engine, sql-database"
77
ms.reviewer: ""
@@ -30,6 +30,7 @@ author: rothja
3030
ms.author: jroth
3131
---
3232
# Backslash (Line Continuation) (Transact-SQL)
33+
3334
[!INCLUDE[tsql-appliesto-ss2008-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-asdb-xxxx-xxx-md.md)]
3435

3536
`\` breaks a long string constant, character or binary, into two or more lines for readability.
@@ -51,7 +52,7 @@ ms.author: jroth
5152
Is the continuation of a string.
5253

5354
## Remarks
54-
This command returns the first and continued sections of the string as one string, without the backslash.
55+
This command returns the first and continued sections of the string as one string, without the backslash. The new line after the backslash must either be a line feed character (U+000A) or a combination of carriage return (U+000D) and line feed (U+000A) in that order.
5556

5657
## Examples
5758

@@ -78,7 +79,7 @@ def' AS [ColumnResult];
7879
The following example uses a backslash and a carriage return to split a binary string into two lines.
7980

8081
```
81-
SELECT 0xabc\
82+
SELECT 0xabc\
8283
def AS [ColumnResult];
8384
8485
```

0 commit comments

Comments
 (0)