ALTER METHOD Examples | Teradata Database - ALTER METHOD Examples - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

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;