db2 olap functions

Want to know db2 olap functions? we have a huge selection of db2 olap functions information on alibabacloud.com

DB2 Date and Time Functions

')Date ('1970-10-20 ')Date ('2014/1/123 ')Time ('12: 00: 00 ')Time ('12. 00.00 ') The timestamp (), date (), and time () functions support more formats. The above formats are just examples. I will use them as an exercise so that readers can discover other formats themselves. Sometimes, you need to know the time difference between two timestamps. Therefore, DB2 provides a built-in function named timesta

Introduction to common DB2 Functions

Introduction to common DB2 functions 1. VALUE Function Syntax: VALUE (EXPRESSION1, EXPRESSION2) the VALUE function returns a non-empty VALUE. When the first parameter is not empty, the VALUE of this parameter is directly returned, if the first parameter is null, the value of the first parameter is returned.Java code eg: -- indicates that if T1.ID is null, an empty string is returned. If T1.ID is not empty,

DB2 Arrays, functions

Label:One. Arrays In DB2, creating an array will generate two objects under functions: The SYS type and the user type array /* Create an array */ Create as varchar (+) array[]; /* Delete an array */ drop type arrname; Two. Functions 1. Basic syntax Create functionDB2INST.FUNC1 (param1integer, param2varchar(Ten))/*input Parameters except Boolean and cursor*/ re

DB2 functions, stored procedure Examples

1. Functions--drop function getmaxdate;Create FUNCTIONGetmaxdate (yintMint )returnsDatebegin DECLAREmaxdate date; Select Max(DateID) intoMaxDate fromD_timewhereYears=Y andMonths=m; returnmaxdate;End;Values Getmaxdate (2013, 3);2. Stored Procedures--drop procedure test;CREATE PROCEDURETEST (inchbegindate DATE,inchENDDATE DATE, out NUMint ) begin DeclareCurrdate date;-- DeclareCyint ; DeclareCmint ; DECLAREAt_endINT DEFAULT 0;-- DECLARENot_f

Total Pages: 3 1 2 3 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.