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 JSON_REMOVE

January 4, 2024
| No Comments
| MySQL

The JSON_REMOVE function in MySQL is used to remove a specified element from a JSON document. It is part of the JSON functions introduced in MySQL version 5.7.8 and later. The function takes two arguments: the JSON document and the path to the element that needs to be removed. The result is a new JSON […]

Read More »

MySQL JSON_QUOTE

January 4, 2024
| No Comments
| MySQL

The MySQL JSON_QUOTE function is used to surround a JSON string with double quotation marks and escape any special characters within the string. This is particularly useful when you need to create valid JSON strings within SQL queries or when working with JSON data in MySQL. The primary purpose of JSON_QUOTE is to prepare strings […]

Read More »

MySQL JSON_PRETTY

January 4, 2024
| No Comments
| MySQL

In MySQL, the JSON_PRETTY function is used to format JSON values in a human-readable manner, making them easier to interpret and debug. It applies indentation and newline characters to the JSON structure, enhancing its readability compared to the compact, machine-readable format. Syntax JSON_PRETTY(json_val) Arguments: json_val: A JSON value or a string representation of a JSON […]

Read More »

MySQL JSON_OVERLAPS

January 4, 2024
| No Comments
| MySQL

The MySQL JSON_OVERLAPS function is used to determine if two JSON documents share any common key-value pairs, array elements, or scalar values. It returns a value of 1 (true) if the documents have any overlap and 0 (false) if they do not. The JSON_OVERLAPS function was introduced in MySQL 8.0.17 and complements the JSON_CONTAINS function, […]

Read More »

MySQL JSON_OBJECT

January 4, 2024
| No Comments
| MySQL

The JSON_OBJECT function in MySQL is used to create a JSON object from a set of key-value pairs. This function is particularly useful when you want to generate JSON data within a SQL query, especially when working with JSON-related features introduced in MySQL 5.7 and later versions. Syntax Here is the syntax for the JSON_OBJECT […]

Read More »

MySQL JSON_MERGE_PRESERVE

January 4, 2024
| No Comments
| MySQL

The JSON_MERGE_PRESERVE function in MySQL is used to merge two or more JSON documents while preserving duplicate keys. This means that if there are overlapping keys in the input JSON documents, the function will merge them into a single JSON document, keeping all the values associated with each unique key. If a key appears in […]

Read More »

Posts pagination

Previous 1 … 11 12 13 … 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.