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

Commit b791560

Browse files
authored
Merge pull request #343 from srutzky/SRutzky-FixSearchCondition
Fix "Search Condition" note about code page conversions
2 parents 23b60a4 + 433807d commit b791560

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/t-sql/queries/search-condition-transact-sql.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Search Condition (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "08/09/2017"
4+
ms.date: "01/15/2018"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
77
ms.service: ""
@@ -114,7 +114,9 @@ ms.workload: "On Demand"
114114
Is a column name, a constant, a function, a variable, a scalar subquery, or any combination of column names, constants, and functions connected by an operator or operators, or a subquery. The expression can also contain the CASE expression.
115115

116116
> [!NOTE]
117-
> When referencing the Unicode character data types **nchar**, **nvarchar**, and **ntext**, 'expression' should be prefixed with the capital letter 'N'. If 'N' is not specified, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] converts the string to the code page that corresponds to the default collation of the database or column. Any characters not found in this code page are lost.
117+
> Non-Unicode string constants and variables use the code page that corresponds to the default collation of the database. Code page conversions can occurr when working with only non-Unicode character data and referencing the non-Unicode character data types **char**, **varchar**, and **text**. [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] converts non-Unicode string constants and variables to the code page that corresponds to the collation of the referenced column or specified using COLLATE, if that code page is different than the code page that corresponds to the default collation of the database. Any characters not found in the new code page will be translated to a similar character, if a [best-fit mapping](http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/) can be found, or else will be converted to the default replacement character of "?".
118+
>
119+
> When working with multiple code pages, character constants can be prefixed with the uppercase letter 'N', and Unicode variables can be used, to avoid code page conversions.
118120
119121
=
120122
Is the operator used to test the equality between two expressions.

0 commit comments

Comments
 (0)