PL/SQL Program to Reverse a String

Here you will get pl/sql program to reverse a string. The substr() function returns a part of string. It has following syntax. substr(string, position, length); We will use this function to extract character by character from string in reverse order and concatenate it previous extracted character. || is used to concatenate string. In this way string …

PL/SQL Program to Reverse a String Read More »

PL/SQL Program for Fibonacci Series

Here you will get pl/sql program for fibonacci series. It is a series in which next number is the sum of previous two numbers.   PL/SQL Program for Fibonacci Series declare first number:=0; second number:=1; third number; n number:=&n; i number; begin dbms_output.put_line(‘Fibonacci series is:’); dbms_output.put_line(first); dbms_output.put_line(second); for i in 2..n loop third:=first+second; first:=second; second:=third; …

PL/SQL Program for Fibonacci Series Read More »