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.GetPhone ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> create function "pears"."GetPhone"( /* Application Maintained Function / Procedure - DO NOT EDIT*/ in "cpe" char(2),in "ptype" char(25),in "recid" char(20) ) returns char(250) begin declare "rv" char(250); select "list"("phone"."number",'; ') into "rv" from "phone" key join "phonetype" where "phone"."whoid" = "recid" and "phone"."who" = (if "cpe" = 'E' then 'CP' else "cpe" endif) and "phonetype"."name" = "ptype"; return("rv") end </code> database/functions/pears_getphone.txt Last modified: 2026/08/07 19:24by 127.0.0.1