Skip to content

islamyounis/Sequence-Trigger-Pair-for-all-Schema-s-Tables-PLSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sequence-Trigger-Pair-for-all-Schema-s-Tables-PLSQL

Project's Description:

PLSQL script that creates a sequence/trigger pair for each table that doesn't have one in any database schema. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages