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 > Other > CREATE FUNCTION in INGRES

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-04, 15:33
srinivas_vja srinivas_vja is offline
Registered User
 
Join Date: Jun 2004
Location: India
Posts: 15
Question CREATE FUNCTION in INGRES

Hi

I want to create an user-defined-function so that I can use it in the following way:

SELECT mymax(col1,col2) FROM tablex

I have searched entire Ingres documentation, but failed to find the syntax.
Doesnt Ingres support "Create Function" to create user defined functions?

Anybody please educate me in this regard.

TIA
Srinivas K
Reply With Quote
  #2 (permalink)  
Old 09-14-04, 11:27
rfeehan rfeehan is offline
Registered User
 
Join Date: Jan 2003
Posts: 24
Try looking under create procedure

I think what you are looking for is a Database Procedure in Ingres. Check the manual using that topic.
__________________
Rob Feehan
Sr. Database Administrator
DST Output
Reply With Quote
  #3 (permalink)  
Old 11-23-04, 20:08
stuarts stuarts is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
Talking

They don't exist.
Maybe in R3 you will find something similar.

You can create your own data types, and modify functions for those data type through data blades I think its called. This becomes unsupported by CA though cause you code gets "comiled" into the Ingres binaries and can therefore crash the database if you do it wrong.
Reply With Quote
  #4 (permalink)  
Old 12-29-04, 12:04
James_Withers James_Withers is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Ingres provides this facility through the use of OME. Using the OME api you can create your own sql functions and datatypes.

You can download the manual from here:

http://opensource.ca.com/projects/in...3/A001871E.pdf

Hope this helps!

Regards

James Withers
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