Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind SQL Server QUOTENAME() Function?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ QUOTENAME('abcdef');3Order
Put the learning moves in the order that makes the concept easiest to apply.
The QUOTENAME() function returns a Unicode string with delimiters added to make the string a valid SQL Server delimited identifier.
Definition and Usage
SQL Server QUOTENAME() Function
Example
SELECT QUOTENAME('abcdef');Definition and Usage
The QUOTENAME() function returns a Unicode string with delimiters added to make the string a valid SQL Server delimited identifier.
Syntax
QUOTENAME(
string, quote_char
)Parameter Values
| Parameter | Description |
|---|---|
| string | Required. A string of Unicode character data. Limited to 128 characters |
| quote_char | Optional. A one-character string to use as the delimiter. Can be a single quotation mark ( ' ), a left or right bracket ( [] ), a double quotation mark ( " ), a left or right parenthesis ( () ), a greater than or less than sign ( >< ), a left or right brace ( {} ) or a backtick ( ` ). If quote_char is not specified, brackets are used. |
Technical Details
| Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
|---|