Category: MariaDB

MariaDB Data Directory Migration: Checks Before and After the Move
Use this MariaDB migration checklist to verify the target volume, confirm existing data after restarting, and decide when it is safe to reopen writes or roll back.

MariaDB LEFT JOIN, RIGHT JOIN, and INNER JOIN Compared
Compare which rows each MariaDB join keeps. Run the examples to see how NULL, ON, and WHERE affect the results and how to join a third table.

MariaDB CEILING: Round numbers up to an integer
See how MariaDB CEILING rounds positive and negative numbers, how it compares with CEIL, FLOOR and ROUND, and how to calculate a page count.

How to List, Create, Drop, and Rename Databases in MariaDB
Use SHOW DATABASES and CREATE DATABASE in MariaDB, then move data to a new database name with a dump and restore. Verify the copy before dropping anything.

How to Create, Replace, Alter, and Drop a View in MariaDB
Work through a MariaDB view example to compare CREATE VIEW, IF NOT EXISTS, and OR REPLACE, then alter the definition and confirm that dropping the view preserves the source rows.

How to Build a Pivot Table in MariaDB
Use GROUP BY with SUM(IF()) or SUM(CASE) to turn products into columns. Check how zero, missing rows, and new products affect a MariaDB pivot.

How to Pick a String by Position with MariaDB ELT()
Use MariaDB ELT() to return a string by its one-based position. Check NULL and decimal inputs, and compare status labels with FIELD() and CASE.

How to Repeat a String with MariaDB REPEAT()
Repeat strings with MariaDB REPEAT(), distinguish empty strings from NULL, and compare repetition with LPAD() and character or byte counts.

How to Match String Patterns with LIKE in MariaDB
Use MariaDB LIKE with %, _, and ESCAPE. Try prefix, suffix, and substring searches, then check case sensitivity, NULL handling, and index access.

How to Round Numbers with MariaDB ROUND()
Use MariaDB ROUND() for decimal places or powers of ten. Compare exact and floating-point ties, truncation and formatting, and rounding before or after a sum.