PL/SQL Program to Find Length of String

PL/SQL Program to Find Length of String:



declare 
str varchar2(20); 
len number; 
begin
str:=:str;
len:=Length(str);  
dbms_output.put_line('Given String is '||str); 
dbms_output.put_line(' '); 
dbms_output.put_line('Length of String is '||len); 
end;

OUTPUT:

Given String is BaronTuts
 
Length of String is 9




Leave a Reply

Your email address will not be published. Required fields are marked *

three × three =

This site uses Akismet to reduce spam. Learn how your comment data is processed.