QUOTES
Updated 2023-06-15 22:13:19.950000
Syntax
SELECT [westclintech].[wct].[QUOTES] (
<@Text, nvarchar(max),>)
Description
Use the scalar function QUOTES to add quotation marks, CHAR(39), to the beginning and end of a string of text.
Arguments
@Text
is the text value to be evaluated. The @Text argument can be of data types that are implicitly convertible to nvarchar or ntext.
Return Type
nvarchar(max)
Remarks
To add double quotes, CHAR(34), use the QUOTED function.
Examples
select wct.QUOTES('now is the time for all good men to come to the aid of their country');
This produces the following result.
{"columns":[{"field":"column 1"}],"rows":[{"column 1":"'now is the time for all good men to come to the aid of their country'"}]}