php-db | 2001011
Date: 01/08/01
- Next message: Lynn Siprelle: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- Previous message: Greg Kelley: "[PHP-DB] php4.0.4 and Interbase - fetching records across files"
- Next in thread: Thies C. Arntzen: "Re: [PHP-DB] CALL A FUCTION OF ORACLE IN PHP?"
- Reply: Thies C. Arntzen: "Re: [PHP-DB] CALL A FUCTION OF ORACLE IN PHP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I HAVE THIS STORED FUNCTION.
HOW I CALL THIS FUCTION OF ORACLE IN PHP?
CREATE function F_PARAMETER(PCDPARAMETER IN VARCHAR2) return varchar2 is
Result VARCHAR2(60);
begin
-- Function F_PARAMETER
-- Return THE VALUE FROM PARAMETER
BEGIN
SELECT VLPARAMETER INTO RESULT
FROM PARAMETER
WHERE CDPARAMETER = PCDPARAMETER;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(-20001,'Parameter '''||PCDPARAMETER||''' not found');
when Others then
RAISE_APPLICATION_ERROR(-20001,'Error searching Parameter '''||PCDPARAMETER||'''');
END;
return(Result);
end ;
Regards,
Marcos
- Next message: Lynn Siprelle: "Re: [PHP-DB] Stupid newbie looping MySQL question"
- Previous message: Greg Kelley: "[PHP-DB] php4.0.4 and Interbase - fetching records across files"
- Next in thread: Thies C. Arntzen: "Re: [PHP-DB] CALL A FUCTION OF ORACLE IN PHP?"
- Reply: Thies C. Arntzen: "Re: [PHP-DB] CALL A FUCTION OF ORACLE IN PHP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

