com.scudata.dm.sql.function.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
<?xml version="1.0" encoding="utf-8"?> <STANDARD> <FUNCTIONS type="FixParam"> <FUNCTION name="ABS" paramcount="1" value=""> <INFO dbtype="ESPROC" value="abs(?1)"/> </FUNCTION> <FUNCTION name="ACOS" paramcount="1" value=""> <INFO dbtype="ESPROC" value="acos(?1)"/> </FUNCTION> <FUNCTION name="ADDDAYS" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTODSINTERVAL(?2,'DAY')"/> <INFO dbtype="SQLSVR" value="DATEADD(DD,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 DAYS"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 DAY"/> <INFO dbtype="HSQL" value="DATEADD('dd', ?2, ?1)"/> <INFO dbtype="TERADATA" value="?1+CAST(?2 AS INTERVAL DAY)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 days'"/> <INFO dbtype="ESPROC" value="elapse(?1,?2)"/> </FUNCTION> <FUNCTION name="ADDHOURS" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTODSINTERVAL(?2,'HOUR')"/> <INFO dbtype="SQLSVR" value="DATEADD(HH,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 HOURS"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 HOUR"/> <INFO dbtype="HSQL" value="DATEADD('hh', ?2, ?1)"/> <INFO dbtype="TERADATA" value="?1+CAST(?2 AS INTERVAL HOUR)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 hours'"/> <INFO dbtype="ESPROC" value="elapse@s(?1,(?2)*3600)"/> </FUNCTION> <FUNCTION name="ADDMINUTES" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTODSINTERVAL(?2,'MINUTE')"/> <INFO dbtype="SQLSVR" value="DATEADD(MI,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 MINUTES"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 MINUTE"/> <INFO dbtype="HSQL" value="DATEADD('mi', ?2, ?1)"/> <INFO dbtype="TERADATA" value="?1+CAST(?2 AS INTERVAL MINUTE)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 minutes'"/> <INFO dbtype="ESPROC" value="elapse@s(?1,(?2)*60)"/> </FUNCTION> <FUNCTION name="ADDMONTHS" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTOYMINTERVAL(?2,'MONTH')"/> <INFO dbtype="SQLSVR" value="DATEADD(MM,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 MONTHS"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 MONTH"/> <INFO dbtype="HSQL" value="DATEADD('mm', ?2, ?1)"/> <INFO dbtype="TERADATA" value="ADD_MONTHS(?1, ?2)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 months'"/> <INFO dbtype="ESPROC" value="elapse@m(?1,?2)"/> </FUNCTION> <FUNCTION name="ADDSECONDS" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTODSINTERVAL(?2,'SECOND')"/> <INFO dbtype="SQLSVR" value="DATEADD(SS,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 SECONDS"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 SECOND"/> <INFO dbtype="HSQL" value="DATEADD('ss', ?2, ?1)"/> <INFO dbtype="TERADATA" value="?1+CAST(?2 AS INTERVAL SECOND)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 seconds'"/> <INFO dbtype="ESPROC" value="elapse@s(?1,?2)"/> </FUNCTION> <FUNCTION name="ADDYEARS" paramcount="2" value=""> <INFO dbtype="ORACLE" value="?1+NUMTOYMINTERVAL(?2,'YEAR')"/> <INFO dbtype="SQLSVR" value="DATEADD(YY,?2,?1)"/> <INFO dbtype="DB2" value="?1+?2 YEARS"/> <INFO dbtype="MYSQL" value="?1+INTERVAL ?2 YEAR"/> <INFO dbtype="HSQL" value="DATEADD('yy', ?2, ?1)"/> <INFO dbtype="TERADATA" value="ADD_MONTHS(?1, ?2*12)"/> <INFO dbtype="POSTGRES" value="?1+interval '?2 years'"/> <INFO dbtype="ESPROC" value="elapse@y(?1,?2)"/> </FUNCTION> <FUNCTION name="ASCII" paramcount="1" value=""> <INFO dbtype="TERADATA" value="n/a"/> <INFO dbtype="ESPROC" value="asc(?1)"/> </FUNCTION> <FUNCTION name="ASIN" paramcount="1" value="asin(?1)"> <INFO dbtype="ESPROC" value="asc(?1)"/> </FUNCTION> <FUNCTION name="ATAN" paramcount="1" value=""> <INFO dbtype="ESPROC" value="atan(?1)"/> </FUNCTION> <FUNCTION name="ATAN2" paramcount="2" value=""> <INFO dbtype="SQLSVR" value="ATN2(?1,?2)"/> <INFO dbtype="ESPROC" value="if(((?2)>0):atan((?1)/(?2)),((?1)>=0&&(?2)<0):(atan((?1)/(?2))+pi()),((?1)<0&&(?2)<0):(atan((?1)/(?2))-pi()),((?1)>0&&(?2)==0):(pi()/2),((?1)<0&&(?2)==0):(-pi()/2),null)"/> </FUNCTION> <FUNCTION name="CAST" paramcount="2" value="CAST(?1 as ?2)"> <INFO dbtype="ORACLE" value=""/> <INFO dbtype="SQLSVR" value=""/> <INFO dbtype="DB2" value=""/> <INFO dbtype="MYSQL" value=""/> <INFO dbtype="HSQL" value=""/> <INFO dbtype="TERADATA" value=""/> <INFO dbtype="POSTGRES" value=""/> <INFO dbtype="ESPROC" value="N/A"/> </FUNCTION> <FUNCTION name="CEIL" paramcount="1" value=""> <INFO dbtype="SQLSVR" value="CEILING(?)"/> <INFO dbtype="POSTGRES" value="CEIL(?)"/> <INFO dbtype="ESPROC" value="long(ceil(?1))"/> </FUNCTION> <FUNCTION name="CHR" paramcount="1" value=""> <INFO dbtype="SQLSVR" value="CHAR(?)"/> <INFO dbtype="MYSQL" value="CHAR(?)"/> <INFO dbtype="HSQL" value="CHAR(?)"/> <INFO dbtype="ESPROC" value="char(?1)"/> </FUNCTION> <FUNCTION name="CONCAT" paramcount="2" value="?1||?2"> <INFO dbtype="SQLSVR" value="?1+?2"/> <INFO dbtype="HSQL" value=""/> <INFO dbtype="TERADATA" value=""/> <INFO dbtype="POSTGRES" value=""/> <INFO dbtype="ESPROC" value="concat(?1,?2)"/> </FUNCTION> <FUNCTION name="COS" paramcount="1" value=""> <INFO dbtype="ESPROC" value="cos(?1)"/> </FUNCTION> <FUNCTION name="DATE" paramcount="2" value=""> <INFO dbtype="ESPROC" value="date(?1,?2)"/> </FUNCTION> <FUNCTION name="DATE" paramcount="1" value="TO_DATE(?,'YYYY-MM-DD')"> <INFO dbtype="ORACLE" value=""/> <INFO dbtype="SQLSVR" value="CONVERT(varchar(100), ?, 23)"/> <INFO dbtype="DB2" value="DATE(?)"/> <INFO dbtype="MYSQL" value="DATE_FORMAT(?,'%Y-%m-%d')"/> <INFO dbtype="HSQL" value=""/> <INFO dbtype="TERADATA" value="CAST(? AS DATE FORMAT 'YYYY-MM-DD')"/> <INFO dbtype="POSTGRES" value=""/> <INFO dbtype="ESPROC" value="date(?1,"yyyy-MM-dd")"/> </FUNCTION> <FUNCTION name="DATETOCHAR" paramcount="2" value="string(?1,?2)"> <INFO dbtype="ESPROC" value="string(?1,?2)"/> </FUNCTION> <FUNCTION name="DATETOCHAR" paramcount="1" value="TO_CHAR(?,'YYYY-MM-DD HH:MI:SS')"> <INFO dbtype="ORACLE" value=""/> <INFO dbtype="SQLSVR" value="CONVERT(CHAR,?,120)"/> <INFO dbtype="DB2" value="TO_CHAR(?,'YYYY-MM-DD HH:MI:SS')"/> <INFO dbtype="MYSQL" value="DATE_FORMAT(?, '%Y-%m-%d %H:%i:%S)"/> <INFO dbtype="HSQL" value=""/> <INFO dbtype="TERADATA" value=""/> <INFO dbtype="POSTGRES" value=""/> <INFO dbtype="ESPROC" value="string(?1,"yyyy-MM-dd")"/> </FUNCTION> <FUNCTION name="DAY" paramcount="1" value="EXTRACT(DAY FROM ?)"> <INFO dbtype="ORACLE" value=""/> <INFO dbtype="TERADATA" value=""/> <INFO dbtype="POSTGRES" value=""/> <INFO dbtype="ESPROC" value="day(?1)"/> </FUNCTION> <FUNCTION name="DAYOFYEAR" paramcount="1" value=""> <INFO dbtype="ORACLE" value="TO_NUMBER(TO_CHAR(?1,'DDD'))"/> <INFO dbtype="SQLSVR" value="DATEPART(DY,?)"/> <INFO dbtype="TERADATA" value="TD_DAY_OF_YEAR(?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(DOY FROM ?)"/> <INFO dbtype="ESPROC" value="ifn(interval(date(year(?1)-1,12,31),date(?1)))"/> </FUNCTION> <FUNCTION name="DECIMAL" paramcount="3" value=""> <INFO dbtype="ORACLE" value="CAST(?1 AS DECIMAL(?2,?3))"/> <INFO dbtype="SQLSVR" value="CAST(?1 AS DECIMAL(?2,?3))"/> <INFO dbtype="DB2" value="DECIMAL(?1,?2,?3)"/> <INFO dbtype="MYSQL" value="CAST(?1 AS DECIMAL(?2,?3))"/> <INFO dbtype="HSQL" value="CAST(?1 AS DECIMAL(?2,?3))"/> <INFO dbtype="TERADATA" value="CAST(?1 AS DECIMAL(?2,?3))"/> <INFO dbtype="POSTGRES" value="CAST(?1 AS NUMERIC(?2,?3))"/> <INFO dbtype="ESPROC" value="round(decimal(?1),?3)"/> </FUNCTION> <FUNCTION name="DECIMAL" paramcount="2" value=""> <INFO dbtype="ESPROC" value="round(decimal(?1),?2)"/> </FUNCTION> <FUNCTION name="DECIMAL" paramcount="1" value=""> <INFO dbtype="ESPROC" value="round(decimal(?1),2)"/> </FUNCTION> <FUNCTION name="EXP" paramcount="1" value=""> <INFO dbtype="ESPROC" value="exp(?1)"/> </FUNCTION> <FUNCTION name="FLOOR" paramcount="1" value=""> <INFO dbtype="ESPROC" value="long(floor(?1))"/> </FUNCTION> <FUNCTION name="HOUR" paramcount="1" value=""> <INFO dbtype="ORACLE" value="EXTRACT(HOUR FROM ?)"/> <INFO dbtype="SQLSVR" value="DATEPART(HH, ?)"/> <INFO dbtype="TERADATA" value="EXTRACT(HOUR FROM ?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(HOUR FROM ?)"/> <INFO dbtype="ESPROC" value="hour(?1)"/> </FUNCTION> <FUNCTION name="INDEXOF" paramcount="3" value=""> <INFO dbtype="ORACLE" value="INSTR(?2,?1,?3)"/> <INFO dbtype="SQLSVR" value="CHARINDEX(?1,?2,?3)"/> <INFO dbtype="DB2" value="LOCATE(?1,?2,?3)"/> <INFO dbtype="MYSQL" value="LOCATE(?1,?2,?3)"/> <INFO dbtype="HSQL" value="LOCATE(?1,?2,?3)"/> <INFO dbtype="TERADATA" value="N/A"/> <INFO dbtype="POSTGRES" value="N/A"/> <INFO dbtype="ESPROC" value="ifn(pos(?2,?1,?3),0)"/> </FUNCTION> <FUNCTION name="INDEXOF" paramcount="2" value=""> <INFO dbtype="ORACLE" value="INSTR(?2,?1)"/> <INFO dbtype="SQLSVR" value="CHARINDEX(?1,?2)"/> <INFO dbtype="DB2" value="LOCATE(?1,?2)"/> <INFO dbtype="MYSQL" value="LOCATE(?1,?2)"/> <INFO dbtype="HSQL" value="LOCATE(?1,?2)"/> <INFO dbtype="TERADATA" value="INDEX(?2,?1)"/> <INFO dbtype="POSTGRES" value="strpos(?2,?1)"/> <INFO dbtype="ESPROC" value="ifn(pos(?2,?1),0)"/> </FUNCTION> <FUNCTION name="INT" paramcount="1" value=""> <INFO dbtype="ORACLE" value="CAST(? AS INT)"/> <INFO dbtype="SQLSVR" value="CAST(? AS INT)"/> <INFO dbtype="MYSQL" value="CAST(? AS SIGNED)"/> <INFO dbtype="HSQL" value="CAST(? AS INT)"/> <INFO dbtype="TERADATA" value="CAST(? AS INT)"/> <INFO dbtype="POSTGRES" value="CAST(? AS INT)"/> <INFO dbtype="ESPROC" value="long(?1)"/> </FUNCTION> <FUNCTION name="LEFT" paramcount="2" value=""> <INFO dbtype="ORACLE" value="SUBSTR(?1,1,?2)"/> <INFO dbtype="TERADATA" value="SUBSTR(?1,1,?2)"/> <INFO dbtype="POSTGRES" value="SUBSTR(?1,1,?2)"/> <INFO dbtype="ESPROC" value="left(?1,?2)"/> </FUNCTION> <FUNCTION name="RIGHT" paramcount="2" value=""> <INFO dbtype="ORACLE" value="SUBSTR(?1,LENGTH(?1)-?2,?2)"/> <INFO dbtype="TERADATA" value="SUBSTR(?1,LENGTH(?1)-?2,?2)"/> <INFO dbtype="POSTGRES" value="SUBSTR(?1,LENGTH(?1)-?2,?2)"/> <INFO dbtype="ESPROC" value="RIGHT(?1,?2)"/> </FUNCTION> <FUNCTION name="LEN" paramcount="1" value=""> <INFO dbtype="ORACLE" value="LENGTH(?)"/> <INFO dbtype="DB2" value="LENGTH(?)"/> <INFO dbtype="MYSQL" value="LENGTH(?)"/> <INFO dbtype="HSQL" value="CHAR_LENGTH(?)"/> <INFO dbtype="TERADATA" value="CHAR_LENGTH(?)"/> <INFO dbtype="POSTGRES" value="CHAR_LENGTH(?)"/> <INFO dbtype="ESPROC" value="len(?1)"/> </FUNCTION> <FUNCTION name="LN" paramcount="1" value=""> <INFO dbtype="SQLSVR" value="LOG(?)"/> <INFO dbtype="ESPROC" value="ln(?1)"/> </FUNCTION> <FUNCTION name="LOG10" paramcount="1" value=""> <INFO dbtype="ORACLE" value="LOG(10,?)"/> <INFO dbtype="TERADATA" value="LOG(?)"/> <INFO dbtype="POSTGRES" value="LOG(?)"/> <INFO dbtype="ESPROC" value="lg(?1)"/> </FUNCTION> <FUNCTION name="LOWER" paramcount="1" value=""> <INFO dbtype="ESPROC" value="lower(?1)"/> </FUNCTION> <FUNCTION name="LTRIM" paramcount="1" value=""> <INFO dbtype="ESPROC" value="trim@l(?1)"/> </FUNCTION> <FUNCTION name="MINUTE" paramcount="1" value=""> <INFO dbtype="ORACLE" value="EXTRACT(MINUTE FROM ?)"/> <INFO dbtype="SQLSVR" value="DATEPART(MI,?)"/> <INFO dbtype="TERADATA" value="EXTRACT(MINUTE FROM ?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(MINUTE FROM ?)"/> <INFO dbtype="ESPROC" value="minute(?1)"/> </FUNCTION> <FUNCTION name="MOD" paramcount="2" value=""> <INFO dbtype="SQLSVR" value="?1 % ?2"/> <INFO dbtype="MYSQL" value="?1 % ?2"/> <INFO dbtype="TERADATA" value="?1 MOD ?2"/> <INFO dbtype="POSTGRES" value="?1 % ?2"/> <INFO dbtype="ESPROC" value="((?1)%(?2))"/> </FUNCTION> <FUNCTION name="MONTH" paramcount="1" value=""> <INFO dbtype="ORACLE" value="EXTRACT(MONTH FROM ?)"/> <INFO dbtype="TERADATA" value="EXTRACT(MONTH FROM ?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(MONTH FROM ?)"/> <INFO dbtype="ESPROC" value="month(?1)"/> </FUNCTION> <FUNCTION name="NOW" paramcount="0"> <INFO dbtype="ORACLE" value="SYSTIMESTAMP"/> <INFO dbtype="SQLSVR" value="CURRENT_TIMESTAMP"/> <INFO dbtype="DB2" value="CURRENT TIMESTAMP"/> <INFO dbtype="HSQL" value="NOW"/> <INFO dbtype="TERADATA" value="CURRENT_TIMESTAMP"/> <INFO dbtype="POSTGRES" value="NOW()"/> <INFO dbtype="ESPROC" value="now()"/> </FUNCTION> <FUNCTION name="NULLIF" paramcount="2" value=""> <INFO dbtype="ESPROC" value="if((?1)!=(?2),?1)"/> </FUNCTION> <FUNCTION name="NUMTOCHAR" paramcount="1" value=""> <INFO dbtype="ORACLE" value="TO_CHAR(?)"/> <INFO dbtype="SQLSVR" value="CAST(? AS VARCHAR)"/> <INFO dbtype="DB2" value="CHAR(?)"/> <INFO dbtype="MYSQL" value="CAST(? AS CHAR)"/> <INFO dbtype="HSQL" value="CONVERT(?, SQL_VARCHAR)"/> <INFO dbtype="TERADATA" value="TO_CHAR(?)"/> <INFO dbtype="POSTGRES" value="CAST(? AS TEXT)"/> <INFO dbtype="ESPROC" value="string(?1)"/> </FUNCTION> <FUNCTION name="NVL" paramcount="2" value=""> <INFO dbtype="ESPROC" value="ifn(?1,?2)"/> </FUNCTION> <FUNCTION name="POWER" paramcount="2" value=""> <INFO dbtype="ESPROC" value="power(?1, ?2)"/> </FUNCTION> <FUNCTION name="QUARTER" paramcount="1" value=""> <INFO dbtype="ORACLE" value="FLOOR((EXTRACT(MONTH FROM ?)+2)/3)"/> <INFO dbtype="SQLSVR" value="DATEPART(QQ,?)"/> <INFO dbtype="TERADATA" value="TD_QUARTER_OF_YEAR(?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(QUARTER FROM ?)"/> <INFO dbtype="ESPROC" value="int(ceil(month(?1)/3))"/> </FUNCTION> <FUNCTION name="RAND" paramcount="1" value=""> <INFO dbtype="ORACLE" value="DBMS_RANDOM.VALUE(0, ?)"/> <INFO dbtype="TERADATA" value="RANDOM(0,?)"/> <INFO dbtype="POSTGRES" value="RANDOM()"/> <INFO dbtype="ESPROC" value="ifn(rand@s(?1),rand())"/> </FUNCTION> <FUNCTION name="REPLACE" paramcount="3" value=""> <INFO dbtype="TERADATA" value="OREPLACE(?1,?2,?3)"/> <INFO dbtype="ESPROC" value="replace(?1,?2,?3)"/> </FUNCTION> <FUNCTION name="RIGHT" paramcount="2" value=""> <INFO dbtype="ORACLE" value="CASE WHEN ?2=0 THEN '' WHEN LENGTH(?1)>?2 THEN SUBSTR(?1,-?2) ELSE ?1 END"/> <INFO dbtype="TERADATA" value="CASE WHEN ?2=0 then '' WHEN CHAR_LENGTH(?1)>?2 THEN SUBSTR(?1,CHAR_LENGTH(?1)-?2,?2) ELSE ?1 END"/> <INFO dbtype="POSTGRES" value="CASE WHEN ?2=0 then '' WHEN CHAR_LENGTH(?1)>?2 THEN SUBSTR(?1,CHAR_LENGTH(?1)-?2,?2) ELSE ?1 END"/> <INFO dbtype="ESPROC" value="right(?1,?2)"/> </FUNCTION> <FUNCTION name="ROUND" paramcount="2" value=""> <INFO dbtype="ESPROC" value="round(?1,?2)"/> </FUNCTION> <FUNCTION name="RTRIM" paramcount="1" value=""> <INFO dbtype="ESPROC" value="trim@r(?1)"/> </FUNCTION> <FUNCTION name="SECOND" paramcount="1" value=""> <INFO dbtype="ORACLE" value="EXTRACT(SECOND FROM ?)"/> <INFO dbtype="SQLSVR" value="DATEPART(SS,?)"/> <INFO dbtype="TERADATA" value="CAST(EXTRACT(SECOND FROM ?) AS INT)"/> <INFO dbtype="POSTGRES" value="EXTRACT(SECOND FROM ?)"/> <INFO dbtype="ESPROC" value="second(?1)"/> </FUNCTION> <FUNCTION name="SIGN" paramcount="1" value=""> <INFO dbtype="TERADATA" value="n/a"/> <INFO dbtype="ESPROC" value="sign(?1)"/> </FUNCTION> <FUNCTION name="SIN" paramcount="1" value=""> <INFO dbtype="ESPROC" value="sin(?1)"/> </FUNCTION> <FUNCTION name="SQRT" paramcount="1" value=""> <INFO dbtype="ESPROC" value="sqrt(?1)"/> </FUNCTION> <FUNCTION name="SUBSTR" paramcount="3" value=""> <INFO dbtype="SQLSVR" value="SUBSTRING(?1,?2,?3)"/> <INFO dbtype="POSTGRES" value="SUBSTR(?1,?2,?3)"/> <INFO dbtype="ESPROC" value="mid(?1,?2,?3)"/> </FUNCTION> <FUNCTION name="SUBSTR" paramcount="2" value=""> <INFO dbtype="SQLSVR" value="SUBSTRING(?1,?2,len(?1)-?2+1)"/> <INFO dbtype="POSTGRES" value="SUBSTR(?1,?2)"/> <INFO dbtype="ESPROC" value="mid(?1,?2)"/> </FUNCTION> <FUNCTION name="TAN" paramcount="1" value=""> <INFO dbtype="ESPROC" value="tan(?1)"/> </FUNCTION> <FUNCTION name="TIME" paramcount="2" value=""> <INFO dbtype="ESPROC" value="time(?1,?2)"/> </FUNCTION> <FUNCTION name="TIME" paramcount="1" value=""> <INFO dbtype="ESPROC" value="time(?1,"HH:mm:ss")"/> </FUNCTION> <FUNCTION name="TIMESTAMP" paramcount="2" value=""> <INFO dbtype="ESPROC" value="datetime(?1,?2)"/> </FUNCTION> <FUNCTION name="TIMESTAMP" paramcount="1" value=""> <INFO dbtype="ORACLE" value="TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')"/> <INFO dbtype="SQLSVR" value="CONVERT(DATETIME,?,120)"/> <INFO dbtype="DB2" value="TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')"/> <INFO dbtype="TERADATA" value="TO_TIMESTAMP(?,'YYYY-MM-DD HH24:MI:SS')"/> <INFO dbtype="POSTGRES" value="TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')"/> <INFO dbtype="ESPROC" value="datetime(?1,"yyyy-MM-dd HH:mm:ss")"/> </FUNCTION> <FUNCTION name="TODAY" paramcount="0"> <INFO dbtype="ORACLE" value="SYSDATE"/> <INFO dbtype="SQLSVR" value="GETDATE()"/> <INFO dbtype="DB2" value="CURRENT DATE"/> <INFO dbtype="MYSQL" value="CURDATE()"/> <INFO dbtype="TERADATA" value="DATE"/> <INFO dbtype="POSTGRES" value="CURRENT_DATE"/> <INFO dbtype="ESPROC" value="now@d()"/> </FUNCTION> <FUNCTION name="TRIM" paramcount="1" value=""> <INFO dbtype="SQLSVR" value="LTRIM(RTRIM(?))"/> <INFO dbtype="DB2" value="LTRIM(RTRIM(?))"/> <INFO dbtype="POSTGRES" value="LTRIM(RTRIM(?))"/> <INFO dbtype="ESPROC" value="trim(?1)"/> </FUNCTION> <FUNCTION name="TRUNC" paramcount="2" value=""> <INFO dbtype="SQLSVR" value="CONVERT(BIGINT,?1*POWER(10,?2))/POWER(10.0,?2)"/> <INFO dbtype="MYSQL" value="TRUNCATE(?1,?2)"/> <INFO dbtype="ESPROC" value="(floor((?1)*power(10,?2))/power(10,?2))"/> </FUNCTION> <FUNCTION name="UPPER" paramcount="1" value=""> <INFO dbtype="ESPROC" value="upper(?1)"/> </FUNCTION> <FUNCTION name="WEEKOFYEAR" paramcount="1" value=""> <INFO dbtype="ORACLE" value="TO_NUMBER(TO_CHAR(?,'WW'))"/> <INFO dbtype="SQLSVR" value="DATEPART(WW,?)"/> <INFO dbtype="DB2" value="WEEK(?)"/> <INFO dbtype="MYSQL" value="WEEK(?)"/> <INFO dbtype="HSQL" value="WEEK(?)"/> <INFO dbtype="TERADATA" value="TD_WEEK_OF_YEAR(?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(WEEK FROM ?)"/> <INFO dbtype="ESPROC" value="ifn(int(ceil(interval(pdate@w(date(year(?1),1,7)),date(?1))/7)))"/> </FUNCTION> <FUNCTION name="YEAR" paramcount="1" value=""> <INFO dbtype="ORACLE" value="EXTRACT(YEAR FROM ?)"/> <INFO dbtype="TERADATA" value="EXTRACT(YEAR FROM ?)"/> <INFO dbtype="POSTGRES" value="EXTRACT(YEAR FROM ?)"/> <INFO dbtype="ESPROC" value="year(?1)"/> </FUNCTION> </FUNCTIONS> <FUNCTIONS type="AnyParam"> <FUNCTION classname="com.scudata.dm.sql.simple.Case" name="case"> <INFO dbtype="ESPROC" classname="com.scudata.dm.sql.simple.Case"/> </FUNCTION> <FUNCTION classname="com.scudata.dm.sql.simple.Coalesce" name="coalesce"> <INFO dbtype="ESPROC" classname="com.scudata.dm.sql.simple.Coalesce"/> </FUNCTION> <FUNCTION classname="com.scudata.dm.sql.simple.Concat" name="concat"> <INFO dbtype="ESPROC" classname="com.scudata.dm.sql.simple.Concat"/> </FUNCTION> </FUNCTIONS> </STANDARD>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy