MySQL 8: CHAR, VARCHAR, TEXT, and BLOB data types – explained with examples
Updated: Jan 26, 2024
Introduction Each column in a MySQL database is required to have a ‘data type’. This data type tells MySQL what kind of data it can expect — for example, whether it’s textual or numeric, and how much space it should......
MySQL 8: Find the sum/average of values in each group
Updated: Jan 26, 2024
Introduction MySQL, as a leading open-source relational database management system (RDBMS), is a cornerstone of modern web development and data analysis. Grouping data and calculating aggregate functions such as the sum and the average......
MySQL 8: Find the min/max value in each group
Updated: Jan 26, 2024
Introduction MySQL is a powerful open-source relational database management system often used for web database applications. As data analysis becomes increasingly important for decision-making, being able to manipulate and aggregate......
MySQL 8: Count rows in each group with GROUP BY and COUNT
Updated: Jan 26, 2024
Introduction In MySQL, the COUNT() function is one of the most common aggregate functions used in conjunction with the GROUP BY clause to summarize or aggregate data stored in a database. This tutorial will guide you through using both......
MySQL 8 Aggregate Functions: SUM, AVG, MIN, MAX, COUNT
Updated: Jan 26, 2024
Introduction MySQL is a widely-used, open-source relational database management system. One of MySQL 8’s key features is its robust set of aggregate functions. These functions allow you to perform calculations on data sets, such......
How to escape special characters in MySQL 8
Updated: Jan 26, 2024
Introduction When working with MySQL or any other relational database, it’s inevitable to encounter special characters within data that require proper handling to maintain the integrity of SQL statements. Special characters can......
Using CHAR_LENGTH and LENGTH functions in MySQL 8
Updated: Jan 26, 2024
Introduction In MySQL, understanding the nuances of string functions can be vital when working with text data. Two such string functions, CHAR_LENGTH() and LENGTH(), are used to return the length of a string. This tutorial delves into......
Using REVERSE function in MySQL 8: A Practical Guide
Updated: Jan 26, 2024
Introduction The REVERSE function in MySQL is a simple yet powerful string function that, as the name suggests, reverses any given string. This can be particularly useful for data transformations, problem-solving, and even when......
Using UPPER and LOWER functions in MySQL 8: A Practical Guide
Updated: Jan 26, 2024
Introduction When working with databases, especially when dealing with textual data, there may be instances where you need to manipulate the case of strings for various purposes such as sorting, displaying, or ensuring data......
Using SUBSTRING function in MySQL 8: A Practical Guide
Updated: Jan 26, 2024
Introduction The SUBSTRING function in MySQL is a powerful tool when it comes to string manipulation. It allows developers to extract a substring from a given string. Whether you need to work with user inputs, log files, or manipulate......
Using CONCAT function in MySQL 8: A Practical Guide
Updated: Jan 26, 2024
Introduction The CONCAT function in MySQL is a string function that allows you to join two or more strings together. This can be incredibly useful when working with database tables where you need to combine information from different......
How to perform full-text search in MySQL 8
Updated: Jan 26, 2024
Introduction Searching for text within a database is a common requirement for many applications. In scenarios where you need to search through a large amount of textual data, a simple query with LIKE can be inefficient and slow. MySQL......