Using ‘AFTER DELETE’ trigger in MySQL 8: Explained with examples
Updated: Jan 26, 2024
Introduction MySQL triggers are database callbacks that execute automatically in response to certain events on a particular table or view in the database. One such trigger is the ‘AFTER DELETE’ trigger, which is invoked......
MySQL 8: How to enable/disable remote connections
Updated: Jan 26, 2024
Introduction MySQL is a robust and widely used open-source database management system. One of the more advanced features its administration includes the enabling and disabling of remote connections. This feature allows users to access......
JSON Data Type in MySQL 8: Tutorial & Examples
Updated: Jan 26, 2024
Introduction With the rise of NoSQL databases, traditional relational database systems like MySQL have evolved to incorporate features that allow developers to store and work with JSON (JavaScript Object Notation) data. MySQL 8.0......
Using JSON_EXTRACT() function in MySQL 8 (with examples)
Updated: Jan 26, 2024
Introduction JSON (JavaScript Object Notation) has become a popular data interchange format due to its simplicity, lightweight nature, and wide support across different programming languages. MySQL, starting from version 5.7,......
Working with JSON_ARRAY() function in MySQL 8
Updated: Jan 26, 2024
Introduction Working with JSON data in MySQL has become increasingly important as the use of JSON has exploded in web, mobile, and cloud applications. MySQL introduced a set of native JSON functions in MySQL 5.7 and further enhanced......
Understanding JSON_OBJECT() function in MySQL 8
Updated: Jan 26, 2024
Introduction JSON (JavaScript Object Notation) has been widely adopted as a data interchange format across many web services and applications due to its text-based, lightweight, and language-independent nature. MySQL 8.0 introduced......
Working with JSON_INSERT() function in MySQL 8
Updated: Jan 26, 2024
Overview The JSON_INSERT() function in MySQL is a powerful tool that allows you to insert new values into a JSON document without replacing existing values. In this tutorial, we’ll explore how to use the JSON_INSERT() function......
Using JSON_REPLACE() Function in MySQL 8
Updated: Jan 26, 2024
Introduction In modern web development, JSON has become the de facto standard format for data interchange, largely due to its ease of use and compatibility across different programming languages and systems. With the growing adoption......
MySQL 8: Using JSON_SET() function to insert or update a JSON document
Updated: Jan 26, 2024
Introduction MySQL 8 introduced a suite of JSON functions that provide powerful capabilities for working with JSON documents. Among these, the JSON_SET() function stands out as an essential tool for anyone dealing with JSON data types......
How to Prevent SQL Injection in MySQL 8: Explained with Examples
Updated: Jan 26, 2024
Introduction SQL Injection is a form of attack that can allow attackers to execute arbitrary SQL code on a database. This can lead to unauthorized viewing of data, data manipulation, and even full control over the database. Preventing......
Pivot tables in MySQL 8: A Practical Guide
Updated: Jan 26, 2024
Introduction Handling data effectively is a core skill for any database professional. One powerful data summarization tool is a pivot table, which allows you to transform rows into columns, aggregating data in the process. This can be......
MySQL 8: Get the ID of the last inserted row
Updated: Jan 26, 2024
Introduction In the world of databases, being able to retrieve the ID of the last inserted row is a common requirement, especially when dealing with relational databases and application development. MySQL, one of the most popular......