How to insert characters in the left side of a string in oracle

In Oracle, LPAD function pads the left side of a string with a specific set of characters. The syntax for the LPAD function is: LPAD( string1, padded_length, [ pad_string ] ).

For example

SELECT LPAD('SHAHEER',12,'*****') FROM DUAL;

RESULT: *****SHAHEER




Comments

Popular posts from this blog

How to create Oracle stored Procedures using TOAD for Oracle

Create Tables in Oracle Database using TOAD

How to Create Packages in Oracle Database using TOAD for Oracle