JIYIK CN >

Current Location:Home > Learning > DATABASE > MySQL >

All

Duplicate a row in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

Sometimes we need to insert data in our database that is mostly similar to another row. In MySQL, there is a simple trick by which you can easily create duplicate rows. In this article, we will learn how to create a copy of a row in the sam...

Full

MySQL split string into rows

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

MySQL stores data in columns and rows of tables, which users can define, control, manipulate, and query. MySQL provides us with various functions, and one function we can have is to split a string into rows. This article discusses splitting...

Full

Inserting multiple rows in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

In this article, we will learn how to insert multiple rows in MySQL. Inserting multiple rows in MySQL INSERT adds new rows to an existing table. Use INSERT...VALUES the command to add rows based on explicitly provided values. INSERT privile...

Full

Convert rows to columns in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

Summary: in this tutorial, we will learn how to change rows to columns of a specific table in MySQL. Creating a Dataset in MySQL It is often necessary to get the appropriate information related to the necessary row data displayed as columns...

Full

MySQL gets the data for the last 30 days

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

This article describes how to use SQL query to obtain the data records of the last 30 days from the database. Import data into the database First, let's import some sample data into the database using SQL query. Before we import the dataset...

Full

Converting from datetime type to date-only in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

Today, we will learn the DATE(), CAST(), CONVERT() and DATE_FORMAT() methods to convert DATETIME type to DATE type in MySQL. The above mentioned methods can be used in MySQL 4.0 and above. Converting from DATETIME to DATE in MySQL To unders...

Full

MySQL date subtraction

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

MySQL has various operations that facilitate the use and maintenance of relational databases. It has various built-in functions that help in the use of this tool. These functions simplify manual work by taking parameters and providing resul...

Full

Adding Date and Time in MySQL using Date_ADD() Function

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

This article shows you how to add dates and times in MySQL using DATE_ADD() the _date_time_s() function. We will learn how to add or subtract days, years, months, and times individually, as well as how to combine the two (for example, days...

Full

Get the sum of multiple columns in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

In this article, we will learn how to sum multiple columns in MySQL. Sum multiple columns in MySQL You can use aggregate functions SUM() to calculate the total value in a collection. SUM() The function calculation does not consider NULL val...

Full

Check if a database exists in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

In this article, we will introduce many ways to check if a database exists in MySQL. Check if the database exists in MySQL The system schema is the schema that MySQL uses. It includes tables that contain data needed by a running MySQL serve...

Full

Display the current database in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

This article focuses on the various queries that can be used to display the current database in MySQL. We will learn by using the Windows command line and MySQL Workbench. Display the current database in MySQL We can use the following query...

Full

The difference between two tables in MySQL

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

In this article, we will learn how to find the difference between two tables in MySQL. The difference between two tables in MySQL We often need to compare two tables to find records in one table that have no matching records in the other ta...

Full

Insert timestamp into MySQL table

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

Today, we will learn how to TIMESTAMP insert date and time into a type column of a MySQL table according to the table definition. Create a MySQL table First, we will create the tables that we will use in this tutorial. Sample code: CREATE T...

Full

Select first row from MySQL table

Publish Date:2025/04/23 Author:JIYIK Category:MySQL

Today, we will explore three scenarios and their solutions where we want to select the first row from a MySQL table. In the first scenario, we will learn to get the first row from a MySQL table where there are multiple instances of a partic...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial