Select * to Show Database Table Sizes MariaDB
December 21, 2023
In database management, understanding the size of your tables is crucial for optimizing performance and ensuring efficient resource utilization.
Read More
Create a slug from a name in MySQL/MariaDB
August 25, 2023
How to create a slug from the name of an item in MySQL/MariaDB.
Read More
How to Join Multiple MySQL Tables in Python
August 9, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
Retrieve records from MSSQLServer in Python
August 2, 2021
The below Python code will create a connection to a MSSQLServer instance, and retrieve data from it back into a variable called tblResults.
Read More
How to Abort SQL statements after a set time in MariaDB
July 17, 2021
Sometimes you don’t want a SELECT query to run for more than a set amount of time.
Read More
SQL to Append all Fields if Shorter than a set Length
June 8, 2020
This came in very handy for me at one point because I needed to have a certain field in each row 14 characters long, but half of them were only 12 characters long.
Read More
Get the Second Highest Salary in MySQL
June 1, 2020
The problem Write a SQL query to get the second highest salary from the Employee table.
Read More
How to Purge the BinLog for MySQL and MariaDB
March 27, 2020
If you see lots of disk space quickly disappearing on your MySQL or MariaDB server, then you may want to look into the BinLog directory, it is located at /var/log/mysql/.
Read More
How to Delete from a Table where rows match in Another Table – MySQL
March 24, 2020
So you have a table where you want to delete a bunch of rows, based on a particular column being matched in another table.
Read More
REPLACE INTO instead of INSERT INTO – MySQL
March 23, 2020
There are many occasions where you need to INSERT a record into a MySQL database table, but the record already exists.
Read More
A bit on SQL Standards
November 12, 2017
SQL (Structured Query Language) for relational databases was maintained and standardised by the American National Standards Institute (ANSI) and the International Organisation for Standardisation (ISO) which is affiliated with the International Electrotechnical Commission (IEC).
Read More
Why we don’t choose MSSQL!
May 26, 2010
Everybody always raves how great Microsoft SQL Server is, and how much data it can hold, and how much bigger it’s “package” is than your own.
Read More
Error 29506 while installing SQL Server Management Studio Express
April 28, 2010
I was trying to install Microsoft SQL Server Management Studio Express (what a long name) on a machine and kept getting error 29506 right near the end with a Rollback action thereafter.
Read More