Search

Download this Manual
PDF (US Ltr) - 43.3Mb
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.2Kb
Man Pages (Zip) - 402.4Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb


Displaying 11 to 20 of 56 total results
https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html
When comparing a value of a string type with a numeric type or YEAR, the string cast is to DOUBLE; if the type of the other argument is not FLOAT, DOUBLE, or REAL, it is also cast to DOUBLE. Both the CAST() and CONVERT() functions support ... This ...
https://dev.mysql.com/doc/refman/8.0/en/window-functions-usage.html
However, whereas an aggregate operation groups query rows into a single result row, a window function produces a result for each query row: The row for which function evaluation occurs is called the current row. The query rows related to the current ...
https://dev.mysql.com/doc/refman/8.0/en/partitioning-range.html
For example, let us suppose that you wish to partition based on the year that each employee left the company; that is, the value of YEAR(separated). (See Section 15.1.9, “ALTER TABLE Statement”, and Section 26.3, “Partition Management”, for ... A table that is partitioned by range is partitioned in such a way that each partition contains rows for which the partitioning expression value lies within a given ...
https://dev.mysql.com/doc/refman/8.0/en/partitioning-hash.html
For instance, you might want to partition based on the year in which an employee was hired. The variance of the expression YEAR(date_col) with respect to date_col is not quite as direct as that of TO_DAYS(date_col), because not every possible change ... Partitioning by HASH is used primarily to ensure an even distribution of data among a predetermined number of ...
https://dev.mysql.com/doc/refman/8.0/en/date-calculations.html
To determine how many years old each of your pets is, use the TIMESTAMPDIFF() function. The following query shows, for each pet, the birth date, the current date, and the age in years. What if you want to know which animals have birthdays next ...
https://dev.mysql.com/doc/refman/8.0/en/built-in-function-reference.html
8.0.18 WEEK() Return the week number WEEKDAY() Return the weekday index WEEKOFYEAR() Return the calendar week of the date (1-53) WEIGHT_STRING() Return the weight string for a string XOR Logical XOR YEAR() Return the year YEARWEEK() Return the year ... The following table lists each built-in (native) function and operator and provides a short description of each ...
https://dev.mysql.com/doc/refman/8.0/en/calculating-days.html
CREATE TABLE t1 (year YEAR, month INT UNSIGNED, day INT UNSIGNED); INSERT INTO t1 VALUES(2000,1,1),(2000,1,20),(2000,1,30),(2000,2,2), (2000,2,23),(2000,2,23); The example table contains year-month-day values representing visits by users to the page. The following example shows how you can use the bit group functions to calculate the number of days per month a user has visited a Web ...
https://dev.mysql.com/doc/refman/8.0/en/datetime.html
For example, a value such as '10:11:12' might look like a time value because of the :, but is interpreted as the year '2010-11-12' if used in date context. Dates containing 2-digit year values are ambiguous because the century is unknown. MySQL ...
https://dev.mysql.com/doc/refman/8.0/en/window-functions-named-windows.html
WINDOW w AS (PARTITION BY country) This construct is not permitted because the OVER clause specifies PARTITION BY for a named window that already has PARTITION BY: OVER (w PARTITION BY year) ... Windows can be defined and given names by which to ...
https://dev.mysql.com/doc/refman/8.0/en/expressions.html
This section lists the grammar rules that expressions must follow in MySQL and provides additional information about the types of terms that may appear in expressions. Expression Syntax Expression Term Notes Temporal Intervals Expression Syntax The ...
Displaying 11 to 20 of 56 total results