ALTER AGGREGATESection: SQL Commands (7)Updated: 2003-11-02 |
ALTER AGGREGATESection: SQL Commands (7)Updated: 2003-11-02 |
ALTER AGGREGATE name ( type ) RENAME TO newname
ALTER AGGREGATE changes the definition of an aggregate function. The only currently available functionality is to rename the aggregate function.
To rename the aggregate function myavg for type integer to my_average:
ALTER AGGREGATE myavg(integer) RENAME TO my_average;
There is no ALTER AGGREGATE statement in the SQL standard.