SQL Server Functions : SQL Server functions has many built-in functions. This reference contains the string, numeric, date, conversion, and advanced functions in SQL Server.<\/p>\n
Function<\/strong><\/td>\n | Description<\/strong><\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ASCII<\/td>\n | Returns the number code that represents the specific character<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHAR<\/td>\n | Returns the ASCII character based on the number code<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHARINDEX<\/td>\n | Returns the location of a substring in a string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONCAT<\/td>\n | Concatenates two or more strings together<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Concat with +<\/td>\n | Concatenates two or more strings together<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DATALENGTH<\/td>\n | Returns the length of an expression (in bytes)<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LEFT<\/td>\n | Extracts a substring from a string (starting from left)<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LEN<\/td>\n | Returns the length of the specified string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LOWER<\/td>\n | Converts a string to lower-case<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LTRIM<\/td>\n | Removes leading spaces from a string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NCHAR<\/td>\n | Returns the Unicode character based on the number code<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PATINDEX<\/td>\n | Returns the location of a pattern in a string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REPLACE<\/td>\n | Replaces a sequence of characters in a string with another set of characters<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RIGHT<\/td>\n | Extracts a substring from a string (starting from right)<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RTRIM<\/td>\n | Removes trailing spaces from a string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SPACE<\/td>\n | Returns a string with a specified number of spaces<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STR<\/td>\n | Returns a string representation of a number<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STUFF<\/td>\n | Deletes a sequence of characters from a string and then inserts another sequence of characters into the string, starting at a specified position<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SUBSTRING<\/td>\n | Extracts a substring from a string<\/td>\n<\/tr>\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UPPER<\/td>\n | Converts a string to upper-case<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n SQL Server Numeric Functions<\/h2>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
|