Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
CREATE FUNCTION "pears"."DuplicateCheckCustomColumn"( IN "RecordType" CHAR(2),IN "RecordID" CHAR(20),IN "ColNo" tinyint ) RETURNS CHAR(100) BEGIN -- RecordType P=Person c=Company -- RecordID=null means return column heading for RecordType P,C or null if custom column not wanted -- RecordID=personid, companyid according to RecordType RETURN NULL END