Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.Country ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== List of Countries used to speed address entry ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **CountryID** | char(20) | NOT NULL | | | | Name | char(30) | NOT NULL | | | | AgencyID | char(20) | NULL | | | | SortOrder | smallint | NULL | | | ===== Primary Key ===== * CountryID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | AgencyDetails | AgencyID | [[database:tables:pears_agencydetails|pears.agencydetails (agencyid)]] | ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== ^ Name ^ Timing ^ Event ^ | WPK_country_COUNTRY | after | insert,delete,update order 1 | ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."Country" -- Table comment: List of Countries used to speed address entry -- Statement count: 5 CREATE TABLE "pears"."Country" ( "CountryID" char(20) NOT NULL ,"Name" char(30) NOT NULL ,"AgencyID" char(20) NULL ,"SortOrder" smallint NULL ,PRIMARY KEY ("CountryID" ASC) ) go COMMENT ON TABLE "pears"."Country" IS 'List of Countries used to speed address entry' go ALTER TABLE "pears"."Country" ADD FOREIGN KEY "AgencyDetails" ("AgencyID" ASC) REFERENCES "pears"."agencydetails" ("agencyid") ON DELETE CASCADE go create trigger "WPK_country_COUNTRY" after insert,delete,update order 1 on "pears"."country" for each statement begin call "WPKTrackChange"('P','COUNTRY') end go COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."Country"."WPK_country_COUNTRY" IS {create trigger WPK_country_COUNTRY after insert,delete,update order 1 on country for each statement begin call WPKTrackChange('P','COUNTRY') end } go </code> database/tables/pears_country.txt Last modified: 2026/08/07 19:24by 127.0.0.1