我正在Linux上使用DB2 10.1修订包1企业版。
我想删除功能
我检查了该功能是否存在:
select * from syscat.functions where funcschema = 'TEST' and funcname = 'REC1'
并获得输出:
ROUTINESCHEMA ROUTINEMODULENAME ROUTINENAME ROUTINETYPE OWNER OWNERTYPE SPECIFICNAME ROUTINEID ROUTINEMODULEID RETURN_TYPESCHEMA RETURN_TYPEMODULE RETURN_TYPENAME ORIGIN FUNCTIONTYPE PARM_COUNT LANGUAGE DIALECT SOURCESCHEMA SOURCESPECIFIC PUBLISHED DETERMINISTIC EXTERNAL_ACTION NULLCALL CAST_FUNCTION ASSIGN_FUNCTION SCRATCHPAD SCRATCHPAD_LENGTH FINALCALL PARALLEL PARAMETER_STYLE FENCED SQL_DATA_ACCESS DBINFO PROGRAMTYPE COMMIT_ON_RETURN AUTONOMOUS RESULT_SETS SPEC_REG FEDERATED THREADSAFE VALID MODULEROUTINEIMPLEMENTED METHODIMPLEMENTED METHODEFFECT TYPE_PRESERVING WITH_FUNC_ACCESS OVERRIDDEN_METHODID SUBJECT_TYPESCHEMA SUBJECT_TYPENAME CLASS JAR_ID JARSCHEMA JAR_SIGNATURE CREATE_TIME ALTER_TIME FUNC_PATH QUALIFIER IOS_PER_INVOC INSTS_PER_INVOC IOS_PER_ARGBYTE INSTS_PER_ARGBYTE PERCENT_ARGBYTES INITIAL_IOS INITIAL_INSTS CARDINALITY SELECTIVITY RESULT_COLS IMPLEMENTATION LIB_ID TEXT_BODY_OFFSET TEXT NEWSAVEPOINTLEVEL DEBUG_MODE TRACE_LEVEL DIAGNOSTIC_LEVEL CHECKOUT_USERID PRECOMPILE_OPTIONS COMPILE_OPTIONS EXECUTION_CONTROL CODEPAGE COLLATIONSCHEMA COLLATIONNAME COLLATIONSCHEMA_ORDERBY COLLATIONNAME_ORDERBY ENCODING_SCHEME LAST_REGEN_TIME INHERITLOCKREQUEST DEFINER SECURE REMARKS
------------- ----------------- ----------- ----------- ----- --------- ------------------ ----------- --------------- ----------------- ----------------- --------------- ------ ------------ ---------- -------- ---------- ------------ -------------- --------- ------------- --------------- -------- ------------- --------------- ---------- ----------------- --------- -------- --------------- ------ --------------- ------ ----------- ---------------- ---------- ----------- -------- --------- ---------- ----- ------------------------ ----------------- ------------ --------------- ---------------- ------------------- ------------------ ---------------- ----- ------ --------- ------------- -------------------------- -------------------------- --------- --------- ------------------------ ------------------------ ------------------------ ------------------------ ---------------- ------------------------ ------------------------ -------------------- ------------------------ ----------- -------------- ----------- ---------------- ---- ----------------- ---------- ----------- ---------------- --------------- ------------------ --------------- ----------------- -------- --------------- ------------- ----------------------- --------------------- --------------- -------------------------- ------------------ ------- ------ -------
TEST IZPISI REC1 F XXXXX U SQL151024081854400 74258 19 TEST IZPISI REC1 S S 1 - - Y Y Y 0 S 0 Y - - - - - - - 2015-10-24-08.18.54.372090 2015-10-24-08.18.54.372090 - TEST -1,00000000000000E+000 -1,00000000000000E+000 -1,00000000000000E+000 -1,00000000000000E+000 -1 -1,00000000000000E+000 -1,00000000000000E+000 -1 -1,00000000000000E+000 1 - - -1 - 0 0 - - - 912 SYSIBM UNIQUE SYSIBM UNIQUE 2015-10-24-08.18.54.372090 XXXXX Y -
我尝试使用以下函数删除函数:
drop function TEST.REC1
我得到了错误:
SQL0204N "TEST.REC1" is an undefined name. SQLSTATE=42704
如何删除此功能?
答案 0 :(得分:0)
尝试
ALTER MODULE IZPISI DROP FUNCTION TEST.REC1