Function | Oracle | Microsoft SQL Server |
String concatenate | ||, CONCAT | + (expression1 + expression2) |
Convert character to ASCII | ASCII | ASCII |
Convert ASCII to character | CHR | CHR |
Return starting point of character in character string (from left) | INSTR (with two arguments) | CHARINDEX |
Length of character string | LENGTH | DATALENGTH or LEN |
Convert characters to uppercase | UPPER | UPPER |
| LOWER | LOWER |
Remove leading blank spaces | LTRIM | LTRIM |
Remove trailing blank spaces | RTRIM | RTRIM |
Substring | SUBSTR (second argument cannot be | SUBSTRING |
Pad left side of character string | LPAD | N/A |
| INSTR | PATINDEX |
| RPAD | REPLICATE |
| SOUNDEX | SOUNDEX |
| RPAD | SPACE |
| TO_CHAR | STR |
| REPLACE | STUFF |
| INITCAP | N/A |
| TRANSLATE | N/A |
| GREATEST | N/A |
| LEAST | N/A |
| NVL | ISNULL |
Monday, November 26, 2007
String Functions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment