Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.81 KB

File metadata and controls

44 lines (34 loc) · 1.81 KB
title String Operators (Transact-SQL)
description String Operators (Transact-SQL)
author rwestMSFT
ms.author randolphwest
ms.reviewer
ms.date 03/14/2017
ms.prod sql
ms.prod_service sql-database
ms.technology t-sql
ms.topic reference
ms.custom
helpviewer_keywords
operators [Transact-SQL], string concatenation
plus sign (+)
string concatenation operators
+ (string concatenation)
dev_langs
TSQL

String Operators (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Managed Instance]

[!INCLUDEssNoVersion] provides the following string operators. String concatenation operators can combine two or more of the following data types into one expression:

  • character or binary strings
  • columns
  • combination of strings and column names

Wildcard string operators can match one or more characters in a string comparison operation. LIKE and PATINDEX are examples of two of these operations.

Section Heading

+ (String Concatenation)

+= (String Concatenation Assignment)

% (Wildcard - Character(s) to Match)

[ ] (Wildcard - Character(s) to Match)

[^] (Wildcard - Character(s) Not to Match)

_ (Wildcard - Match One Character)