Oracle String/Character Functions
Code Snippet
SELECT CONCAT ('Devendrakumar ','Rajendran') concat_2_strings
, CONCAT( CONCAT ('Devendrakumar ','Rajendran'), ' Working @ Trianz Holdings Pvt. Ltd.') concat_more_strings
, INITCAP ('DEVA') initcap
, INSTR ('Devendrakumar', 'kumar',1) instr_position
, LENGTH ('Devendrakumar') string_length
, LOWER ('DEVA') lowercase
, UPPER ('Deva') uppercase
, LPAD ('7',3,0) left_padding
, RPAD ('1',3,0) right_padding
, TRIM (' Deva ') space_trim
, LTRIM ('@Deva','@') left_trimming
, RTRIM ('Deva#', '#') right_trimming
, REPLACE ('1234 5678 9012 3456', '1234 5678 9012', 'xxxx xxxx xxxx') card_no_masking
, SUBSTR ('Devendrakumar',0,8) substr_fwd_search
, SUBSTR ('Devendrakumar',-5,5) substr_back_search
FROM dual;
Comments
Post a Comment