Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi ABS function in Firebird 1.5 ? (https://www.delphipraxis.net/108192-abs-function-firebird-1-5-a.html)

Eppos 8. Feb 2008 16:09

Datenbank: Firebird • Version: 1.5 • Zugriff über: bde

ABS function in Firebird 1.5 ?
 
Hallo zusammen,

gibt es eine Funktion in Firebird die das geliche macht wie die "abs" function in delphi?

Vielen Dank!

Eppos

mkinzler 8. Feb 2008 16:12

Re: ABS function in Firebird 1.5 ?
 
UDF: z.B. F_ABS() bei FreeAdHoc
oder

SQL-Code:
 ... CASE WHEN <WERT> > 0 then <WERT> else -<WERT> END ...


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:23 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz