Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread MOD in EDB-Manager
Wed, May 27 2009 1:34 PMPermanent Link

Dieter Nagy
Hello,
I tried in the function:

  EXECUTE IMMEDIATE 'CREATE FUNCTION "FUNC_OSTERN" (IN "JAHR" SMALLINT)
RETURNS DATE
BEGIN

Declare a smallint;


set a    = MOD(jahr,19);  

I get the error: The function MOD does not exists...

Is it not possible to use this?

TIA
Dieter Nagy
Wed, May 27 2009 2:00 PMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Dieter,

It's an operator, not a function:

  SET a = Jahr MOD 19 ;

--
Fernando Dias
[Team Elevate]
Wed, May 27 2009 3:57 PMPermanent Link

Dieter Nagy
Fernando,

thanks for the answer.

Dieter Nagy






Fernando Dias wrote:

Dieter,

It's an operator, not a function:

  SET a = Jahr MOD 19 ;

--
Fernando Dias
[Team Elevate]
Image