Browsed by
Category: Blog

What is the usage of ENUMs in MySQL?

What is the usage of ENUMs in MySQL?

ENUMs are string objects. By defining ENUMs, we allow the end-user to give correct input as in case the user provides an input that is not part of the ENUM defined data, then the query won’t execute, and an error message will be displayed which says “The wrong Query”. For instance, suppose we want to take the gender of the user as an input, so we specify ENUM(‘male’, ‘female’, ‘other’), and hence whenever the user tries to input any string…

Read More Read More

MySQL Interview Questions

MySQL Interview Questions

MySQL Interview Questions – Set 14 MySQL Interview Questions – Set 13 MySQL Interview Questions – Set 12 MySQL Interview Questions – Set 11 MySQL Interview Questions – Set 10 MySQL Interview Questions – Set 09 MySQL Interview Questions – Set 08 MySQL Interview Questions – Set 07 MySQL Interview Questions – Set 06 MySQL Interview Questions – Set 05 MySQL Interview Questions – Set 04 MySQL Interview Questions – Set 03 MySQL Interview Questions – Set 02 MySQL Interview…

Read More Read More

MySQL Interview Questions – Set 11

MySQL Interview Questions – Set 11

How can we run batch mode in MySQL? To perform batch mode in MySQL, we use the following command: mysql; mysql mysql.out; In which language MySQL has been written? MySQL is written in C and C++, and its SQL parser is written in yacc. How to install MySQL? Installing MySQL on our system allows us to safely create, drop, and test web applications without affecting our live website’s data. There are many ways to use MySQL on our system, but…

Read More Read More

What are the different tables present in MySQL?

What are the different tables present in MySQL?

There are many tables that remain present by default. But, MyISAM is the default database engine used in MySQL. There are five types of tables that are present: MyISAM Heap Merge INNO DB ISAM In MySQL, there are several default tables and system tables that are present in the database to manage its functionalities. Some of the important ones include: mysql.user: This table stores information about MySQL user accounts, including usernames, passwords, and privileges. mysql.db: It contains information about database-level…

Read More Read More

How to drop the primary key in MySQL?

How to drop the primary key in MySQL?

MySQL primary key is a single or combination of the field used to identify each record in a table uniquely. A primary key column cannot be null or empty. We can remove or delete a primary key from the table using the ALTER TABLE statement. The following syntax is used to drop the primary key: ALTER TABLE table_name DROP PRIMARY KEY;

How many Triggers are possible in MySQL?

How many Triggers are possible in MySQL?

There are only six Triggers allowed to use in the MySQL database. Before Insert After Insert Before Update After Update Before Delete After Delete In MySQL, the number of triggers you can create depends on the version you are using and the specific configuration of your MySQL instance. Generally, MySQL imposes a limit on the number of triggers per table rather than per database or server. As of my last update, which was in January 2022, MySQL imposes a limit…

Read More Read More

What are the advantages of MyISAM over InnoDB?

What are the advantages of MyISAM over InnoDB?

MyISAM follows a conservative approach to disk space management and stores each MyISAM table in a separate file, which can be further compressed if required. On the other hand, InnoDB stores the tables in the tablespace. Its further optimization is difficult. The advantages of MyISAM over InnoDB include: Simplicity: MyISAM is simpler to design and create, making it easier to use for beginners or for simpler database applications. Faster for Read-Heavy Applications: MyISAM performs better in read-heavy scenarios where there…

Read More Read More

Eklavya Online

Eklavya Online

Eklavya Online is Free Study Portal for NewBies and Experienced Guys who wanna upgrade their knowledge in their respective industry and strive to learn more.

MySQL Interview Questions – Set 12

MySQL Interview Questions – Set 12

What is the difference between the heap table and the temporary table? Heap tables: Heap tables are found in memory that is used for high-speed storage temporarily. They do not allow BLOB or TEXT fields. Heap tables do not support AUTO_INCREMENT. Indexes should be NOT NULL. Temporary tables: The temporary tables are used to keep the transient data. Sometimes it is beneficial in cases to hold temporary data. The temporary table is deleted after the current client session terminates. Main…

Read More Read More