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

Author: mysqltutor_05ut1l

MySQL Comparison Functions

January 6, 2024
| No Comments
| MySQL

MySQL provides several comparison functions that are useful for handling null values and comparing multiple expressions. These functions include COALESCE, GREATEST, LEAST, IS NOT NULL, and IS NULL. Comparison functions in MySQL compare two or more values and return a Boolean value (TRUE or FALSE) or a specific value based on the comparison. These functions […]

Read More »

MySQL Flow Control Functions

January 5, 2024
| No Comments
| MySQL

MySQL Flow Control Functions are essential tools for managing the flow of execution within SQL queries, allowing for conditional logic and handling NULL values efficiently. Among these functions, the CASE, IF, IFNULL, and NULLIF functions play key roles in controlling the flow of execution based on specific conditions. CASE Function: The CASE function in MySQL […]

Read More »

MySQL Math functions

January 5, 2024
| No Comments
| MySQL

MySQL provides a variety of math functions that allow users to perform mathematical operations on numeric data stored in a database. These functions can be useful for performing calculations, aggregations, and transformations on numerical values within SQL queries. Here are some commonly used MySQL math functions: ABS: This function returns the absolute value of a […]

Read More »

MySQL MOD

January 5, 2024
| No Comments
| MySQL

The MySQL MOD function is a mathematical function that returns the remainder of a division operation. It calculates the remainder when one number is divided by another. It is commonly used in various scenarios, including determining if a number is even or odd, calculating day of the week, partitioning datasets, and error handling. Syntax The […]

Read More »

MySQL TRUNCATE

January 5, 2024
| No Comments
| MySQL

The TRUNCATE() function in MySQL is used to truncate a number to a specified number of decimal places. This function is similar to the ROUND() function, but it does not perform any rounding. Instead, it simply removes the specified number of digits from the decimal part of the number. Syntax The syntax of the TRUNCATE() […]

Read More »

MySQL VERSION

January 4, 2024
| No Comments
| MySQL

The VERSION() function in MySQL is used to retrieve the version number of the MySQL server that you are currently connected to. This function can be useful in various scenarios, such as when you need to check the server version for compatibility or if you simply want to display the MySQL server version in your […]

Read More »

Posts pagination

Previous 1 … 6 7 8 … 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.