Login     Register

        Contact Us     Search

XLeratorDB/strings Online Documentation

SQL Server QUOTES function


QUOTES

Updated: 30 April 2009


Use QUOTES to add quotation marks (CHAR(39)) to the beginning and end of a string of text.
Syntax
SELECT [wctString].[wct].[QUOTES] (
   <@Text, nvarchar(max),>)
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 Types
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
-----------------------------------------------------------------------
'now is the time for all good men to come to the aid of their country'
 
(1 row(s) affected)


Copyright 2008-2017 Westclintech LLC         Privacy Policy        Terms of Service