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 > DB2 > How to create function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-09, 02:04
db2id db2id is offline
Registered User
 
Join Date: Apr 2009
Posts: 5
How to create function

Hi,

I am new to DB2. I have to creata a function which performs certain manipulations on a table. The result of the value should be stored in a new table.

But I dont know the basic thing of how to creata function ans execute it.
Will functions be createed in CLP of DB2?.

How to invoke the function?

Is there anything specific have to be enabled for function creation?.
Pease help.. thanks
Reply With Quote
  #2 (permalink)  
Old 04-16-09, 02:14
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
see
CREATE FUNCTION
would it not be better to create a stored procedure for this
CREATE PROCEDURE (SQL)
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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