Blog

python tutorials and learn python

Created with Sketch.

MySQL Copy Table With Examples

MySQL Copy Table With Examples Summary: in this tutorial, you will learn how to copy table within the same database or from one database to another using CREATE TABLE and SELECT statements. MySQL copy table to a new table Copying data from an existing table to a new one is very useful in some cases such as backing…
Read more

MySQL UUID Smackdown: UUID vs. INT for Primary Key

MySQL UUID Smackdown: UUID vs. INT for Primary Key Summary: this tutorial introduces you to MySQL UUID, shows you to use it as the primary key (PK) for a table, and discusses the pros and cons of using it as the primary key. Introduction to MySQL UUID UUID stands for Universally Unique IDentifier. UUID is…
Read more

How To Delete Duplicate Rows in MySQL

How To Delete Duplicate Rows in MySQL Summary: in this tutorial, you will learn various ways to delete duplicate rows in MySQL. In the previous tutorial, we have shown you how to find duplicate values in a table. Once the duplicates rows are identified, you may want to delete them to clean up your data.…
Read more

How To Find Duplicate Values in MySQL

How To Find Duplicate Values in MySQL Summary: in this tutorial, you will learn how to find duplicate values of one or more columns in MySQL. Data duplication happens because of many reasons. Finding duplicate values is one of the important tasks that you must deal with when working with databases. Setting up a sample…
Read more

MySQL Compare Two Tables

MySQL Compare Two Tables Summary: in this tutorial, you will learn how to compare two tables to find the unmatched records. In data migration, we often have to compare two tables to identify a record in one table that have no corresponding record in another table. For example, we have a new database whose schema…
Read more

MySQL Row Count: How to Get Row Count in MySQL

MySQL Row Count: How to Get Row Count in MySQL Summary: in this tutorial, you will learn various ways to get MySQL row count in the database. Getting MySQL row count of a single table To get the row count of a single table, you use the COUNT(*) in a SELECT statement as follows: SELECT…
Read more

Managing Hierarchical Data in MySQL Using the Adjacency List Model

Managing Hierarchical Data in MySQL Using the Adjacency List Model Summary: in this tutorial, you will learn how to use adjacency list model for managing hierarchical data in MySQL. Introduction to adjacency list model Hierarchical data is everywhere. It can be blog categories, product hierarchies, or organizational structures. There are many ways to manage hierarchical…
Read more

MySQL Tips

MySQL Tips In this section, we provide you with advanced MySQL techniques and tips to help you solve the most difficult challenges in MySQL effectively. Managing Hierarchical Data in MySQL Using the Adjacency List Model In this tutorial, you will learn how to use the adjacency list model for managing hierarchical data in MySQL. MySQL…
Read more

Maintaining MySQL Database Tables

Maintaining MySQL Database Tables Summary: in this tutorial, we will introduce you to some very useful statements that allow you to maintain database tables in MySQL. MySQL provides several useful statements that allow you to maintain database tables effectively. Those statements enable you to analyze, optimize, check, and repair database tables. Analyze table statement MySQL…
Read more

MySQL Restore: Restoring from a Dump File

MySQL Restore: Restoring from a Dump File Summary: in this tutorial, you will learn how to restore an SQL dump file by using the mysql tool. Setting up a sample database First, create a new database called mydb: CREATE DATABASE mydb; Code language: SQL (Structured Query Language) (sql) Second, use the mydb database: USE mydb;…
Read more