ALTER METHOD Examples | Teradata Vantage - ALTER METHOD Examples - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Example: Changing the Protection Mode

The following ALTER METHOD request changes the protection mode for the method named polygon_mbr() from protected to not protected:

    ALTER METHOD polygon_mbr() FOR SYSUDTLIB.polygon
    EXECUTE NOT PROTECTED;

Example: Recompiling a Method Object

The following ALTER METHOD request recompiles the specific method object named SYSUDTLIB.polygon_mbr:

    ALTER SPECIFIC METHOD SYSUDTLIB.polygon_mbr COMPILE;