DB2 Date Time function(DATE (TRIM (CHAR (dt#11y)) | | -' | | TRIM (CHAR (dt#11m)) | | ' -' | | TRIM (CHAR (dt#11d))) between date (' & StrDate1 & ') and date (' & StrDate2 & '))(Y > Y) or ((y = y) and (M > m)) or ((y = y) and (M = m) and (d >=
This article mainly describes the comparison between common DB2 functions and Oracle functions, including descriptions of type conversion functions, time and date, string functions, and mathematical functions, the following is a description of the
DB2 function An example of an explanation function for a function name function AVG () returns the average of a set of values. Selectavg (SALARY) Frombsempms; CORR (), CORRELATION () returns the relationship coefficient of a pair of values. SELECT
DB2 built-in functions are really a lot, it is almost impossible to master each function, so this article is not intended to describe the specific use of each function, but rather to provide an overview of the functions of each function, so that
Backup and recoveryBackup and recovery are the basic requirements for ensuring business continuity when the media fails. The MySQL backup and recovery options depend heavily on the underlying table type. For example, both MyISAM and InnoDB tables
Dayname returns a mixed case string, with a week representing the name of the day (for example, Friday) for the day portion of the parameter.
DayOfWeek returns the number of days of the week in the argument, expressed as an integer value of 1-7, of
Name of function
function explanation
Examples of functions
AVG ()
Returns the average of a set of values.
SELECT AVG (SALARY) from Bsempms;
CORR (), CORRELATION ()
Dayname returns a string of both upper and lower cases. For the day part of the parameter, the name of the day (for example, Friday) is expressed by week ).Dayofweek returns the day of the week in the parameter, expressed by an integer ranging from 1
Dayname returns a string of both upper and lower cases. For the day part of the parameter, the name of the day (for example, Friday) is expressed by week ).
Dayofweek returns the day of the week in the parameter, expressed by an integer ranging from
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.