Translate Function in SQL

TRANSLATE This will replace the set of characters, character by character.To replace the single character at a time. Syntax: translate (string, old_chars, new_chars) Ex: select translate('india','in','xy') from dual; output translate('india','in','xy')…

0 Comments

RTRIM Function

RTRIM This will trim off unwanted characters from the right sides of string.This will remove all the specific characters from right side of string. Syntax: rtrim (string [, unwanted_chars]) Ex:…

0 Comments

LTRIM Function

LTRIM This will trim off unwanted characters from the left sides of string.This will remove all the specific characters from left side of string. Syntax: ltrim (string [,unwanted_chars]) Ex: select…

0 Comments

TRIM Function

TRIM This will trim off unwanted characters from the both sides of string.This will remove all the specific characters from both side of string. Syntax: trim (unwanted_chars from string) Ex:…

0 Comments

LPAD Function in SQL

LPAD This will allows you to pad the left side of a column with any set of characters. Syntax: lpad (string, length [, padding_char]) Ex: select lpad('computer',15,'*'), lpad('computer',15,'*#') from dual;…

0 Comments

RPAD Function

RPAD This will allows you to pad the right side of a column with any set of characters.Syntax: rpad (string, length ,[ padding_char]) Ex: select rpad('computer',15,'*'), rpad('computer',15,'*#') from dual; output…

0 Comments