If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > DIFFERENCE BETWEEN FUNCTION & PROCEDURE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-13-05, 08:02
ravi_pentakota ravi_pentakota is offline
Registered User
 
Join Date: Dec 2005
Posts: 8
DIFFERENCE BETWEEN FUNCTION & PROCEDURE

wHAT IS THE EXACT DIFFERENCE BETWEEN FUNCTION & PROCEDURE.

1.the same code can be shared by many applications.
2.both can return more than 1 value
Reply With Quote
  #2 (permalink)  
Old 12-13-05, 09:17
June C. Hunt June C. Hunt is offline
Registered User
 
Join Date: Feb 2005
Posts: 43
If I remember this correctly, they behave the same for backwards compatibility. I'm not sure when FUNCTIONS were added to Informix, but, if memory serves me correctly, PROCEDURES pre-date FUNCTIONS.

Read the IBM Informix Guide to SQL: Syntax manual for the official position on the differences between FUNCTIONS and PROCEDURES. There are sections in the IDS v9.4 and IDS v10 manuals that describe "Relationships Between Routines, Functions, and Procedures" and "Using CREATE PROCEDURE Versus CREATE FUNCTION". You may find the same information in earlier manuals; I haven't looked to be able to say that these sections are in earlier versions of the documentation.

You may access the manuals online at
http://www.ibm.com/software/data/informix/pubs/library/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On