17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LEN<br />

The LEN function returns the number of characters in the specified expression. The syntax is as<br />

follows:<br />

LOWER<br />

LEN()<br />

The LOWER function converts any uppercase characters in the expression into lowercase characters.<br />

The syntax is as follows:<br />

LTRIM<br />

LOWER()<br />

The LTRIM function removes any leading blanks from a character_expression. The syntax is as follows:<br />

NCHAR<br />

LTRIM()<br />

The NCHAR function returns the Unicode character that has the specified integer_code. The syntax is as<br />

follows:<br />

NCHAR()<br />

The integer_code parameter must be a positive whole number from 0 to 65,535.<br />

PATINDEX<br />

The PATINDEX function returns the starting position of the first occurrence of a pattern in a specified<br />

expression or zero if the pattern was not found. The syntax is as follows:<br />

PATINDEX(‘’, )<br />

The pattern parameter is a string that will be searched for. Wildcard characters can be used, but the %<br />

characters must surround the pattern. The expression parameter is character data in which the pattern<br />

is being searched for — usually a column.<br />

QUOTENAME<br />

The QUOTENAME function returns a Unicode string with delimiters added to make the specified string a<br />

valid <strong>SQL</strong> <strong>Server</strong> delimited identifier. The syntax is as follows:<br />

QUOTENAME(‘’[, ‘’])<br />

Apendix A: System Functions<br />

635

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!