Login    Register

XLeratorDB/strings Online Documentation

QUOTES


wct.QUOTES

Updated: 30 April 2009


Use wct.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)


  Comments
Add Comment
No Comments Yet


 |  View Topic History  |
Copyright 2010 WestClinTech LLC         Privacy Policy        Terms of Service