Print pyramid of GeeksforGeeks in PL/SQL Last Updated : 13 Mar, 2023 Comments Improve Suggest changes Like Article Like Report PL/SQL is a block-structured language that enables developers to combine the power of SQL with procedural statements. All the statements of a block are passed to the oracle engine all at once which increases processing speed and decreases the traffic.PL/SQL extends SQL by adding constructs found in procedural languages, resulting in a structural language that is more powerful than SQL. The basic unit in PL/SQL is a block. All PL/SQL programs are made up of blocks, which can be nested within each other. Typically, each block performs a logical action in the program. A block has the following structure: DECLARE declaration statements; BEGIN executable statements EXCEPTIONS exception handling statements END; Now write a program in pl/sql which print a pyramid of string "GeeksforGeeks" shown below Examples - GeeksforGeeks GeeksforGeek GeeksforGee GeeksforGe GeeksforG Geeksfor Geeksfo Geeksf Geeks Geek Gee Ge G Code - C++ --Declaration Block DECLARE -- declaration of string as Geeksforgeeks str VARCHAR2(100) := 'GeeksforGeeks'; -- len of string and num for no of rows len VARCHAR2(100); num NUMBER(15); -- execution part begin BEGIN --calculating length of string num:=LENGTH(str); -- starting of while from -- from num to till num>1 WHILE num>=1 LOOP len:=SUBSTR(str,1,num); num:=num-1; DBMS_OUTPUT.PUT_LINE(len); --ending of loop here END LOOP; -- end of beginning block END; -- End program Output: GeeksforGeeks GeeksforGeek GeeksforGee GeeksforGe GeeksforG Geeksfor Geeksfo Geeksf Geeks Geek Gee Ge G Disadvantages of SQL - SQL doesn’t provide the programmers with a technique of condition checking, looping, and branching.SQL statements are passed to the Oracle engine one at a time which increases traffic and decreases speed.SQL has no facility of error checking during manipulation of data. Comment More infoAdvertise with us Next Article Print pyramid of GeeksforGeeks in PL/SQL V vt_m Follow Improve Article Tags : Misc DSA SQL-PL/SQL Practice Tags : Misc Similar Reads Program for Fibonacci numbers in PL/SQL The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, â¦â¦.. In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation Fn = Fn-1 + Fn-1 with seed values F0= 0 and F1 = 1. Given a number n, print n- 1 min read Print all even numbers from 1 to n in PL/SQL Prerequisite- PL/SQL Introduction In PL/SQL code groups of commands are arranged within a block. It groups together related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations. Given a number N, the task is to display all the ev 1 min read Cursors in PL/SQL A Cursor in PL/SQL is a pointer to a context area that stores the result set of a query. PL/SQL CursorsThe cursor is used to retrieve data one row at a time from the results set, unlike other SQL commands that operate on all rows at once. Cursors update table records in a singleton or row-by-row man 3 min read Prime number in PL/SQL Prerequisite â PL/SQL introductionA prime number is a whole number greater than 1, which is only divisible by 1 and itself. First few prime numbers are : 2 3 5 7 11 13 17 19 23 â¦..In PL/SQL code groups of commands are arranged within a block. A block group-related declarations or statements. In decl 1 min read Print different star patterns in SQL Let's see how we can print the pattern of various type using SQL. Syntax : Declare @variable_name DATATYPE -- first declare all the -- variables with datatype -- like (int) select @variable = WITH_ANY_VALUE -- select the variable and -- initialize with value while CONDITION -- condition like @variab 2 min read Like