PL/SQL

Simple PL/SQL to generate a load for Goldengate and others

# create the table(s), primary key, sequence, and trigger # the sequence and trigger auto populate the primary key CREATE TABLE dept ( ID NUMBER(10) NOT NULL, DESCRIPTION VARCHAR2(50) NOT NULL); ALTER TABLE dept ADD ( CONSTRAINT dept_pk1 PRIMARY KEY (ID)); CREATE SEQUENCE dept_seq START WITH 1; Trigger definition: CREATE OR REPLACE TRIGGER dept_bir BEFORE INSERT …

Simple PL/SQL to generate a load for Goldengate and others Read More »