Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2004, 09:19 PM
jhlee24 jhlee24 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: New Jersey, U.S.A.
Posts: 40 jhlee24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 23 m 6 sec
Reputation Power: 5
Send a message via MSN to jhlee24 Send a message via Yahoo to jhlee24
Smile any function like ISNULL in FireBird?

Hello all,

I am building an asp.net web server application with FireBird 1.5 and wonder if there is any pre-defined function in FireBird just like ISNULL in MS SQL2000?

Thank you.

Reply With Quote
  #2  
Old May 26th, 2004, 03:50 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
maybe this link can help:
Quote:
Code:
This function will return either absolute value, or -1 if the argument was NULL (or not a valid integer). 
function TEST_Abs (val: PChar): integer; stdcall;
begin
  try
    Result := Abs( StrToInt(val) );
  except
    Result := -1;
  end;
end;


DECLARE EXTERNAL FUNCTION TEST_ABS
  CSTRING(20)
  RETURNS INTEGER BY VALUE
  ENTRY_POINT 'TEST_Abs' MODULE_NAME 'UDF_Examples';


SELECT I, TEST_Abs(I) FROM TAB;

       I TEST_ABS
======== ========
       5        5
      -5        5
       0        0
         -1

Reply With Quote
  #3  
Old May 26th, 2004, 11:01 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Use the SQL standard COALESCE function in Firebird 1.5. Check the Release Notes for details.
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com

Reply With Quote
  #4  
Old May 26th, 2004, 11:07 PM
jhlee24 jhlee24 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: New Jersey, U.S.A.
Posts: 40 jhlee24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 23 m 6 sec
Reputation Power: 5
Send a message via MSN to jhlee24 Send a message via Yahoo to jhlee24
Wink Great!

Thank you all!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > any function like ISNULL in FireBird?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT