JIYIK CN >

Current Location:Home > Learning >

All

Delete the column if it exists in MySQL

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

In this article, we will learn how to delete single or multiple columns present in MySQL. If the column exists in MySQL, then delete the column In a table, a column is a row of cells that can contain text, numbers, and graphics. For each ro...

Full

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

IDENTITY columns in MySQL

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

In this article, we will learn about MySQL IDENTITY column. IDENTITY columns in MySQL While creating a table, we may not have a unique identifier in the database, which makes choosing a primary key challenging. To solve such a problem, we h...

Full

Specifying unique constraints for multiple columns in MySQL

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

This article will explore the methods of specifying unique constraints for multiple columns in MySQL. Specifying unique constraints for multiple columns in MySQL You may sometimes want to guarantee that every value in a column or set of col...

Full

MySQL check if column is empty

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

In MySQL or any programming language, there are privileges to add constraints or checks in the instance of creating a table. These constraints help the user to restrict the values ​​inserted into specific fields of the table. The restri...

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

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

Appending a string to an existing field in MySQL

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

In this article, we will learn to use CONCAT() the and CONCAT_WS() functions to concatenate or append string values ​​in MySQL fields. Use CONCAT() and CONCAT_WS() to append a string to an existing field in MySQL To understand CONCAT()...

Full

While loop in MySQL

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

Loops are the most fundamental part of full stack development. Loops are very useful when we need to perform similar tasks again and again under certain conditions. In this article, we will see how to use while loop in MySQL, and we will al...

Full

MySQL ForEach Loop

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

This article describes how to simulate a foreach loop in MySQL using INSERT, SELECT, WHERE, and JOIN in one statement. MySQL foreach loop To understand foreach loop simulation, let us create three tables with the following names and attribu...

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

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

Display tables and database structure in MySQL

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

Today, we will learn about queries in MySQL that can display the table and database structure. We will use the mysqldump utility, DESCRIBE the , SHOW TABLES and SHOW CREATE TABLE the statements. We are using MySQL version 8.0.28 while writi...

Full

Enforce case sensitivity in MySQL LIKE

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

Keywords in any programming language such as C, C++, Java, and MySQL are useful; they are called reserved words. These reserved words have meanings and functions. When these keywords are used in a statement, they operate according to their...

Full

Zerofill usage, advantages and alternatives in MySQL

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

In this article we will understand the uses, advantages and alternatives of ZEROFILL attribute in MySQL. Use and benefits of the ZEROFILL attribute in MySQL The benefit of using the ZEROFILL attribute is that it has nothing to do with input...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial