Ritika

DROP multiple columns in MySQL with single ALTER statement

This article will see how to DROP multiple columns from a MySQL table with a single ALTER statement. Multiple columns can be deleted from the MySQL table using a single ALTER statement by separating the DROP keyword and column name list with a comma. SYNTAX:- EXAMPLE:- Let us get started by preparing the sample data. We will

DROP multiple columns in MySQL with single ALTER statement Read More »

Find all tables with specific column names in MySQL

This article will look into getting all the MySQL tables with specific column names from a database schema. We will be illustrating the concept using various examples. Let us get started by preparing the sample data. We will be creating three tables, sale_details, sale_person_designation, and sale_city. Action Output:- The above image shows that all the three

Find all tables with specific column names in MySQL Read More »

Error Code: 1364 [Solved] Field doesn’t have a default value

In this article, we will discuss why Error 1364 occurs and how to resolve it.  Table of Contents Introduction Error code 1364 resolution with AUTO_INCREMENT Error code 1364 resolution with DEFAULT value Introduction MySQL server throws the Error 1364 if the query or statement tries to insert a row without a value for a particular column defined as NOT

Error Code: 1364 [Solved] Field doesn’t have a default value Read More »

Scroll to Top