Skip to content

MySQL Tutorial

Learn MySQL

Menu
  • Home
  • Data types
  • Functions
    • Aggregate Functions
    • Cast Functions
    • Comparison Functions
    • DATE Functions
    • Flow Control Functions
    • Math functions
    • String Functions
    • Window Functions
    • REGEXP Functions
    • JSON Functions
    • XML Functions
    • Information Functions
    • Encryption Functions

Category: MySQL

Learn MySQL Tutorial

MySQL CHAR_LENGTH

January 1, 2024
| No Comments
| MySQL

The MySQL CHAR_LENGTH function is used to determine the number of characters in a given string. It is a character set-aware function, which means it takes into account the character set used for the string. The function returns the length of the string in characters, not bytes. Syntax Here’s the basic syntax of the CHAR_LENGTH […]

Read More »

MySQL YEAR

January 1, 2024
| No Comments
| MySQL

The MySQL YEAR function is a date and time function used to extract the year from a given date. It is particularly useful when you want to retrieve only the year portion of a date value stored in a MySQL database. Syntax The syntax for the YEAR function is quite straightforward: YEAR(date) Here, the date […]

Read More »

MySQL WEEKDAY

January 1, 2024
| No Comments
| MySQL

The MySQL WEEKDAY function is used to determine the day of the week for a given date. It returns an integer value representing the day of the week, where Monday is assigned the value 0 and Sunday is assigned the value 6. This function can be particularly useful in scenarios where you need to perform […]

Read More »

MySQL WEEK

January 1, 2024
| No Comments
| MySQL

The WEEK function in MySQL is a date and time function that is used to extract the week number from a given date. It is particularly useful when working with temporal data and analyzing trends over weeks. The WEEK function returns the week number according to either a Sunday or Monday-based week convention, depending on […]

Read More »

MySQL TIMESTAMP

January 1, 2024
| No Comments
| MySQL

The MySQL TIMESTAMP function is a date and time function that is commonly used for working with date and time values in MySQL databases. It is often employed to store and retrieve timestamps, which represent a specific point in time, with both date and time components. Here is a brief overview of the MySQL TIMESTAMP […]

Read More »

MySQL TIME

January 1, 2024
| No Comments
| MySQL

The MySQL TIME function is a built-in function that is used to extract the time portion from a datetime or timestamp expression. It is particularly useful when you have a datetime value and you want to isolate and work with only the time component. Syntax The basic syntax of the TIME function is as follows: […]

Read More »

Posts pagination

Previous 1 … 21 22 23 … 39 Next

MySQL tutorial

  • MySQL Database
  • MySQL Create table
  • MySQL Insert
  • MySQL Update
  • MySQL Delete
  • MySQL Select
  • MySQL From
  • MySQL Where
  • MySQL Order By
  • MySQL Select distinct
  • MySQL AND
  • MySQL OR
  • MySQL IN
  • MySQL NOT IN
  • MySQL BETWEEN
  • MySQL LIKE
  • MySQL LIMIT
  • MySQL EXISTS
  • MySQL GROUP BY
  • MySQL HAVING
  • MySQL IS NULL
  • MySQL Joins
  • MySQL INNER JOIN
  • MySQL LEFT JOIN
  • MySQL RIGHT JOIN
  • MySQL CROSS JOIN
  • MySQL SELF JOIN
  • MySQL ROLLUP
  • MySQL Subquery
  • MySQL UNION
  • MySQL UNION ALL
  • MySQL EXCEPT
  • MySQL CASE
  • MySQL IF-THEN-ELSE

Recent Posts

  • MySQL SUBDATE function
  • MySQL STR_TO_DATE function
  • MySQL convert string to date
  • MySQL datetime format
  • MySQL create temporary table
  • MySQL current datetime
  • MySQL TRUNCATE
  • MySQL SHOW EVENTS
  • MySQL ALTER EVENT
  • MySQL DROP EVENT

© MySQL Tutorial 2025.