Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements >

ALTER FUNCTION

Use the ALTER FUNCTION statement to change the routine modifiers or pathname of a user-defined function. Only Dynamic Server supports this statement, which is an extension to the ANSI/ISO standard for SQL.

Syntax

Read syntax diagramSkip visual syntax diagram>>-ALTER-------------------------------------------------------->
 
                            .-,------------------.
                            V                    |
>--+-FUNCTION--function--(----+----------------+-+--)-+--------->
   |                          '-parameter_type-'      |
   |                                      (1)         |
   '-SPECIFIC FUNCTION--| Specific Name |-------------'
 
         .-,------------------------------------------------------------------.
         V                                    (2)                             |
>--WITH(---+-+-ADD----+--| Routine Modifier |-------------------------------+-+-)-><
           | +-MODIFY-+                                                     |
           | '-DROP---'                                                     |
           |  (3)                                                      (4)  |
           '--------MODIFY EXTERNAL NAME =--| Shared-Object Filename |------'
 
Notes:
  1. See Specific Name
  2. See Routine Modifier
  3. External routines only
  4. See Shared-Object Filename
Element Description Restrictions Syntax
function User-defined function to be modified Must be registered in the database. If the name does not uniquely identify a function, you must enter one or more appropriate values for parameter_type. Database Object Name
parameter_type Data type of a parameter Must be the same data types (and specified in the same order) as in the definition of function Identifier

Usage

The ALTER FUNCTION statement can modify a user-defined function to tune its performance by modifying characteristics that control how the function executes. You can also add or replace related user-defined routines (UDRs) that provide alternatives for the query optimizer, which can improve performance.

All modifications take effect on the next invocation of the function.

Only the UDR owner or the DBA can use the ALTER FUNCTION statement.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]