pears.UniqueKey

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

CREATE FUNCTION "pears"."UniqueKey"( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  IN "x" CHAR(50) DEFAULT NULL ) 
RETURNS CHAR(20)
NOT deterministic
BEGIN
  RETURN "string"("IQXDBID","upper"("right"("inttohex"("UniqSeq"."NextVal"),7)),"right"("dateformat"(CURRENT TIMESTAMP,'yyyymmddhhnn'),11))
END
  • database/functions/pears_uniquekey.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1