Rechercher dans le manuel MySQL

Displaying 11 to 20 of 58 total results
https://dev.mysql.com/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/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 13.1.9, “ALTER TABLE Syntax”, and Section 23.3, “Partition Management”, for ...
https://dev.mysql.com/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/calculating-days.html
CREATE TABLE t1 (year YEAR(4), 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 ... 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/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 The following grammar ...
https://dev.mysql.com/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/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 a date context. Dates containing two-digit year values are ambiguous because the century is unknown. MySQL ...This section describes their characteristics, how they are similar, and how they ...
https://dev.mysql.com/partitioning-pruning.html
Pruning can also be applied for tables partitioned on a DATE or DATETIME column when the partitioning expression uses the YEAR() or TO_DAYS() function. YEAR('1984-06-21') yields the value 1984, which is found in partition d3. For example, this ...
https://dev.mysql.com/create-table.html
Suppose that you have a table that you wish to partition on a column containing year values, according to the following scheme. Example: COMMENT = 'Data for the years previous to 1999' The maximum length for a partition comment is 1024 characters.
https://dev.mysql.com/server-error-reference.html
Error number: MY-010112; Symbol: ER_CONFIRMING_THE_FUTURE; SQLSTATE: HY000 Message: Current time has got past year 2038. Error number: MY-010344; Symbol: ER_TABLE_INCOMPATIBLE_YEAR_FIELD; SQLSTATE: HY000 Message: Found incompatible YEAR(x) field ...
Displaying 11 to 20 of 58 total results

Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-fct-year-p-2.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut