https://github.com/utsavpatel562/pl-sql
PL/SQL
https://github.com/utsavpatel562/pl-sql
sql
Last synced: about 1 year ago
JSON representation
PL/SQL
- Host: GitHub
- URL: https://github.com/utsavpatel562/pl-sql
- Owner: utsavpatel562
- Created: 2024-04-06T00:33:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T16:58:28.000Z (about 1 year ago)
- Last Synced: 2025-02-21T17:45:15.574Z (about 1 year ago)
- Topics: sql
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PL/SQL Examples Repository
Welcome to the PL/SQL Examples Repository! This repository contains various PL/SQL scripts demonstrating basic programming concepts and algorithms. Each script is written to showcase different use cases and control structures within PL/SQL.
## Table of Contents
- [Introduction](#introduction)
- [Files in the Repository](#files-in-the-repository)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Introduction
PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. This repository includes a set of scripts written in PL/SQL to help beginners understand and practice fundamental programming concepts.
## Files in the Repository
Here are the scripts included in this repository:
1. **Fibonacci.sql**:
- Contains two implementations for generating Fibonacci series:
- Using a FOR loop.
- Using a WHILE loop.
2. **Palindrome_number.sql**:
- Checks if a given number is a palindrome.
3. **Reverse_for_loop.sql**:
- Demonstrates reversing a sequence of numbers using a FOR loop.
4. **Factorial_using_while_loop.sql**:
- Calculates the factorial of a given number using a WHILE loop.
5. **Odd_Even.sql**:
- Determines if a given number is odd or even.
6. **Leap_Year_or_Not.sql**:
- Checks if a given year is a leap year or not.
## Usage
To use these scripts, you will need access to an Oracle database and a tool that can execute PL/SQL scripts, such as SQL*Plus, SQL Developer, or any other PL/SQL IDE.
### Running the Scripts
1. **Clone the Repository**:
```bash
git clone https://github.com/utsavpatel562/PL-SQL.git
cd PL-SQL