How to Delete a Database in MariaDB

How to delete a database in MariaDB

Here, we’ll go through how to delete a database in MariaDB and how to do so using the DROP DATABASE statement on the MariaDB Server. To aid you in understanding the topic better, we will debate and draw conclusions about a number of examples. The topics we will cover are listed below. MariaDB How to … Read more >>

MariaDB Row_Number Tutorial

MariaDB row_number

In this MariaDB tutorial, we will study the use of the MariaDB Row_Number statement and we will also cover some examples. There are lists of the topic that comes under discussion: MariaDB row_number MariaDB row_number over partition by MariaDB row_number alternative MariaDB row_number error MariaDB 5.5 row number How to show row number in MariaDB … Read more >>

MariaDB Join with Examples

MariaDB join

In this MariaDB tutorial, we will learn about the “MariaDB Join” where we will extract the information by combining the multiple tables and cover the following topics. MariaDB Join MariaDB Join 3 tables MariaDB Join update MariaDB Join vs inner join MariaDB Join delete MariaDB Join vs left join MariaDB Join string MariaDB Join subquery … Read more >>

MariaDB Left Join – Helpful Guide

MariaDB select left join

In this MariaDB tutorial, we will study the use of the MariaDB Left Join clause and we will also cover some examples. There are lists of the topic that comes under discussion: MariaDB left join MariaDB left join example MariaDB left join not working MariaDB left join multiple tables MariaDB left join subquery MariaDB left … Read more >>

MariaDB Primary Key: Create, Compound Key, ALTER TABLE and Drop

MariaDB compound primary key added with ALTER TABLE in VS Code

My ALTER TABLE order_lines ADD PRIMARY KEY (order_id, line_no) failed with ERROR 1062, since the imported table held a duplicate pair. A MariaDB primary key is one column, or a compound of several, that’s unique, never NULL, and one per table. Here’s what we’re building: Before You Start: MariaDB Test Setup and Sample Data Test … Read more >>

How to List Databases in MariaDB

How to List Databases in MariaDB

We will now talk about a few practical MariaDB commands. Since MariaDB is merely a forked-out version of MySQL, these very basic commands will get you started using MariaDB. You can also use them with MySQL. In this tutorial, I will walk you through exactly how to list databases in MariaDB. We will go beyond … Read more >>

MariaDB Set Auto Increment Value: Start, Change, Reset and Add

MariaDB set auto increment value with ALTER TABLE customers AUTO_INCREMENT = 5000 in VS Code

Want the next ID to be 5000? That’s the whole MariaDB set auto increment value job, one ALTER TABLE: Next insert: Tested on MariaDB 13.0.2 with InnoDB tables. Set the Start Value in CREATE TABLE Put AUTO_INCREMENT = n after the column list. This is the sample table every query below resets to (the AUTO_INCREMENT … Read more >>

MariaDB EXPLAIN

MariaDB EXPLAIN

By using EXPLAIN, you are asking MariaDB to show you its “thought process” before it ever touches your data. In this comprehensive guide, I’ll walk you through how to use this statement like a pro to eliminate bottlenecks and improve your performance. MariaDB EXPLAIN What is MariaDB EXPLAIN? The EXPLAIN statement is an administrative command … Read more >>