🌐
Oracle
docs.oracle.com › cd › B10500_01 › appdev.920 › a96624 › a_samps.htm
Sample PL/SQL Programs
Embedded PL/SQL Debit Transaction Demo Trying to connect... connected. ** Debit which account number? (-1 to end) 1 What is the debit amount? 300 Status: Transaction completed. Balance is now: $700.00 ** Debit which account number? (-1 to end) 1 What is the debit amount?
🌐
University of Tennessee at Chattanooga
utc.edu › document › 71811 pdf
Programming in Oracle with PL/SQL Procedural Language Extension to SQL
SQL, for example: loops, conditions, functions, etc. • This allows a lot more freedom than general · SQL, and is lighter-weight than JDBC. • We write PL/SQL code in a regular file, for · example PL.sql, and load it with @PL in the · sqlplus console. Other Databases ·
🌐
TutorialsPoint
tutorialspoint.com › plsql › plsql_basic_syntax.htm
PL/SQL - Basic Syntax
When the above code is executed at the SQL prompt, it produces the following result − · Hello World PL/SQL procedure successfully completed.
🌐
GeeksforGeeks
geeksforgeeks.org › pl/sql › plsql-introduction
PL/SQL Introduction - GeeksforGeeks
Let’s combine all the above concepts into one practical example. We’ll create a PL/SQL block that takes two numbers from the user, calculates their sum and displays the result. -- PL/SQL code to print sum of two numbers taken from the user.
Published   May 27, 2026
🌐
GitHub
github.com › srikanthpragada › plsql
GitHub - srikanthpragada/plsql: PL/SQL Examples · GitHub
PL/SQL Examples. Contribute to srikanthpragada/plsql development by creating an account on GitHub.
Starred by 97 users
Forked by 63 users
Languages   PLSQL 66.5% | TSQL 28.6% | SQLPL 4.9%
🌐
Oracle
oracle.com › database › technologies › appdev › plsql.html
PL/SQL for Developers
Controlling the Flow of Execution: Conditional branching and iterative processing in PL/SQL · Wrap Your Code in a Neat Package: Packages are the fundamental building blocks of any high quality PL/SQL-based application
🌐
Wikipedia
en.wikipedia.org › wiki › PL › SQL
PL/SQL - Wikipedia
February 4, 2026 - The function converts the first ... for example: ... To convert the dates to strings one uses the function TO_CHAR (date_string, format_string). PL/SQL also supports the use of ANSI date and interval literals. The following clause gives an 18-month range: WHERE dateField BETWEEN DATE '2004-12-30' - INTERVAL '1-6' YEAR TO MONTH AND DATE '2004-12-30' Exceptions—errors during code execution—are ...
Find elsewhere
🌐
OneCompiler
onecompiler.com › plsql
PL/SQL Online Editor & Compiler
PL/SQL supports various data types including NUMBER, VARCHAR2, DATE, BOOLEAN, and composite types. Variables must be declared in the DECLARE section before use. Use %TYPE to inherit a column's data type and %ROWTYPE for entire row structures, ensuring your code stays synchronized with table schema changes.
🌐
Quora
quora.com › What-are-some-practical-examples-of-the-usage-of-PL-SQL
What are some practical examples of the usage of PL/SQL? - Quora
Answer (1 of 3): Question was: What are some practical examples of the usage of PL/SQL? Some time ago I refactored an invoicing system completely written in PL/SQL. The code was 70 pages when I started, all in one huge main package. When I was finished, the main package was approximately 2000 li...
🌐
Stanford InfoLab
infolab.stanford.edu › ~ullman › fcdb › oracle › or-plsql.html
Using Oracle PL/SQL
PL/SQL allows you to branch and create loops in a fairly familiar way. ... IF <condition> THEN <statement_list> ELSE <statement_list> END IF; The ELSE part is optional. If you want a multiway branch, use: IF <condition_1> THEN ... ELSIF <condition_2> THEN ...
🌐
Oracle
docs.oracle.com › cd › B25329_01 › doc › appdev.102 › b25108 › xedev_plsql.htm
4 Using PL/SQL
The following example shows how you can disable a single line by making it a comment: -- pay_per_day := monthly_salary/number_of_days_worked; You can use multiple-line comment delimiters to comment out large sections of code. Variables can have any SQL datatype, such as VARCHAR2, DATE, or NUMBER, or a PL/SQL-only datatype, such as a BOOLEAN or PLS_INTEGER.
🌐
Software Testing Help
softwaretestinghelp.com › home › pl/sql › pl sql tutorial for beginners with examples | what is pl/sql
PL SQL Tutorial For Beginners With Examples | What Is PL/SQL
April 1, 2025 - Learn about different types of PL SQL Records and Record Types with programming examples: In this article, we will continue with PL/SQL series. In the PL SQL Cursor And Strings tutorial, we learned about Implicit and Explicit Cursors, cursor for loop, String functions, etc. Here, we will explore PL/SQL records and… · PL SQL Cursor And Strings: Tutorial With Code Examples
🌐
W3Resource
w3resource.com › plsql-exercises
PL/SQL Exercises, Practice, Solution - w3resource
The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with SQL and Oracle. Exercises are designed to enhance your ability to write well-structured PL/SQL programs.
🌐
Medium
lakshitha1629.medium.com › introduction-to-oracle-pl-sql-a-step-by-step-guide-for-beginners-a205563cb973
Introduction to Oracle PL/SQL: A Step-by-Step Guide for Beginners #1 | by Lakshitha Perera | Medium
August 14, 2024 - DECLARE v_age NUMBER := 30; v_name VARCHAR2(50) := 'John Doe'; v_join_date DATE := SYSDATE; BEGIN -- Your PL/SQL code here END;
🌐
Oracle-Base
oracle-base.com › articles › misc › introduction-to-plsql
Introduction to PL/SQL - ORACLE-BASE
SET SERVEROUTPUT ON DECLARE l_description VARCHAR2(10); BEGIN SELECT description INTO l_description FROM sql_test WHERE id = 1; DBMS_OUTPUT.put_line('l_description=' || l_description); END; / l_description=One PL/SQL procedure successfully completed.
🌐
Stack Overflow
stackoverflow.com › questions › 62327010 › how-to-write-a-pl-sql-script-that-can-run-as-script-in-oracles-sqlplus-as-well
How to write a PL/SQL script that can run as Script in Oracle's SQLPlus as well as in SQLDeveloper? - Stack Overflow
I have developed a script using SQLDeveloper. It's basic structure is: File pl_sql.sql: -- setting some options here, e.g. set linesize 32767 / set serveroutput on / etc. declare -- some variables
🌐
EDUCBA
educba.com › home › software development › software development tutorials › pl/sql tutorial › pl/sql queries
PL/SQL Queries | List of all PL/SQL Queries with Examples
April 5, 2023 - In the above example, we use the update command; here, we need to update the city of Jenny Pune instead of Mumbai by using stud_id. One more thing is that here we update only a single column. The final output of the above statement we illustrated by using the below screenshot is as follows. PL/SQL also provides the delete query to the user, in which we can easily delete the particular records from the specified table by providing the where clause as per our requirement.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
GeeksforGeeks
geeksforgeeks.org › pl/sql › pl-sql-tutorial
PL/SQL Tutorial: Complete Guide to Database Procedures & Functions - GeeksforGeeks
May 14, 2026 - PL/SQL procedures and functions help automate tasks, organize code efficiently, perform calculations and return results within database programs.
🌐
TechTarget
techtarget.com › searchoracle › definition › PL › SQL
What is PL/SQL (Procedural Language/Structured Query Language)? | Definition from TechTarget
Developers can use APIs in PL/SQL to abstract complex data structures and security implementations from client applications. For example, by adding code -- inserts, updates, deletes -- to an API, they can wrap the transactional processing in that API and avoid having to create triggers, say, ...