The following example adds a new instance method named toYen() to the structured UDT named euro:
ALTER TYPE euro /* Add original method */ ADD INSTANCE METHOD toYen() RETURNS yen LANGUAGE C PARAMETER STYLE SQL DETERMINISTIC NO SQL;
The following example adds a new instance method named toYen() to the structured UDT named euro:
ALTER TYPE euro /* Add original method */ ADD INSTANCE METHOD toYen() RETURNS yen LANGUAGE C PARAMETER STYLE SQL DETERMINISTIC NO SQL;