SET SCHEMA DB2INST1;
SET CURRENT PATH = "SYSIBM","SYSFUN","SYSPROC","SYSIBMADM","DB2INST1";
CREATE FUNCTION DB2INST1.VARCHAR(CFLOAT DOUBLE)
RETURNS CHARACTER(30)
SPECIFIC DB2INST1.SQL091023140234200
LANGUAGE SQL
NOT DETERMINISTIC
READS SQL DATA
STATIC DISPATCH
CALLED ON NULL INPUT
EXTERNAL ACTION
INHERIT SPECIAL REGISTERS
BEGIN ATOMIC -- 声明
end ; --结束
那以上那些 每行都什么意思啊 求高人点播 下
------解决方案--------------------------------------------------------
- SQL code
CREATE FUNCTION TAN (X DOUBLE) RETURNS DOUBLE LANGUAGE SQL CONTAINS SQL NO EXTERNAL ACTION DETERMINISTIC RETURN SIN(X)/COS(X);