Subject | Re: [ib-support] ABS |
---|---|
Author | Helen Borrie |
Post date | 2002-12-12T10:42:22Z |
At 09:55 AM 12-12-02 +0000, you wrote:
DECLARE EXTERNAL FUNCTION abs
DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'IB_UDF_abs' MODULE_NAME 'ib_udf';
COMMIT;
heLen
>HiYes. You'll need to declare the ABS() udf first though:
>
>Is it posible to make a select where I wants an absolute value in my
>where
>statement ?
>Something like this:
>
>Select * from MyTable where ABS(MyField)>1;
DECLARE EXTERNAL FUNCTION abs
DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT 'IB_UDF_abs' MODULE_NAME 'ib_udf';
COMMIT;
heLen