An open API service indexing awesome lists of open source software.

https://github.com/dina-hosny/sequence-trigger-pair-for-all-schema-tables-plsql

A PLSQL script that creates Sequence Trigger Pair for all Schema's Tables
https://github.com/dina-hosny/sequence-trigger-pair-for-all-schema-tables-plsql

data oracle plsql sequence sequencetrigger sql toad trigger

Last synced: 3 months ago
JSON representation

A PLSQL script that creates Sequence Trigger Pair for all Schema's Tables

Awesome Lists containing this project

README

        

# Sequence Trigger Pair for all Schema's Tables PLSQL
A PLSQL script that creates Sequence Trigger Pair for all Schema's Tables

## Project's Description:
PLSQL script that creates a sequence/trigger pair for each table that doesn't have one in any database schema to simplify database management and ensure data integrity.

It addresses the problem of managing primary key values across multiple tables, by automatically creating unique sequences and triggers for each table that has a primary key ending with "_ID".

## How it Works?
This script creates a cursor to identify the relevant tables and columns, drop any existing sequences, and create new sequences/triggers pair with starting values based on the current maximum value in the primary key column.

The main goal of the project is to simplify database management and ensure data integrity.

## Tools and Technologies:
- PLSQL.
- Sequences.
- Triggers.
- TOAD.