bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server Functions

Concept visual

SQL Server Functions

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Formula

SQL Server has many built - in functions.

This reference contains string, numeric, date, conversion, and some advanced functions in SQL Server.

SQL Server String Functions

Function

Description

Ascii

Returns the ASCII value for the specific character

Char

Returns the character based on the ASCII code

Charindex

Returns the position of a substring in a string

Concat

Adds two or more strings together

Concat with +

Adds two or more strings together

CONCAT_WS Adds two or more strings together with a separator

Datalength

Returns the number of bytes used to represent an expression

Difference

Compares two SOUNDEX values, and returns an integer value

Format

Formats a value with the specified format

Left

Extracts a number of characters from a string (starting from left)

Len

Returns the length of a string

Lower

Converts a string to lower-case

Ltrim

Removes leading spaces from a string

Nchar

Returns the Unicode character based on the number code

Patindex

Returns the position of a pattern in a string

Quotename

Returns a Unicode string with delimiters added to make the string a valid SQL Server delimited identifier

Previous

MySQL VERSION() Function

Next

SQL Server ASCII() Function