Table of Contents



pears.LocalWebPageDivision

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Columns

Column Type Null Default Comment
id char(20) NOT NULL
divisionid char(20) NOT NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
LocalWebPage id pears.LocalWebPage (ID) NOT NULL; ON DELETE CASCADE
division divisionid pears.Division (divisionid) NOT NULL; ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."LocalWebPageDivision"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."LocalWebPageDivision" (
    "id"                             CHAR(20) NOT NULL
   ,"divisionid"                     CHAR(20) NOT NULL
   ,PRIMARY KEY ("id" ASC,"divisionid" ASC) 
)
GO
 
 
ALTER TABLE "pears"."LocalWebPageDivision"
    ADD NOT NULL FOREIGN KEY "LocalWebPage" ("id" ASC)
    REFERENCES "pears"."LocalWebPage" ("ID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."LocalWebPageDivision"
    ADD NOT NULL FOREIGN KEY "division" ("divisionid" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE CASCADE
GO