pears.DeHead

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

CREATE FUNCTION "pears"."DeHead"( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  IN "s" long VARCHAR ) 
RETURNS long VARCHAR
BEGIN
  DECLARE "i" SMALLINT;
  IF "s" IS NULL THEN
    RETURN NULL
  END IF;
  SET "i" = "charindex"("char"(9),"s");
  IF "i" > 0 THEN
    SET "s" = "stuff"("s",1,"i",'')
  END IF;
  RETURN("s")
END
  • database/functions/pears_dehead.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1