What is BLOB and TEXT in MySQL?

BLOB is an acronym that stands for a large binary object. It is used to hold a variable amount of data. There are four types of the BLOB. TINYBLOB BLOB MEDIUMBLOB LONGBLOB The differences among all these are the maximum length of values they can hold. TEXT is a case-insensitive BLOB. TEXT values are non-binary … Read more

What is the heap table?

Tables that are present in memory is known as HEAP tables. When you create a heap table in MySQL, you should need to specify the TYPE as HEAP. These tables are commonly known as memory tables. They are used for high-speed storage on a temporary basis. They do not allow BLOB or TEXT fields. In … Read more

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 … Read more

What is the difference between TRUNCATE and DELETE in MySQL?

TRUNCATE is a DDL command, and DELETE is a DML command. It is not possible to use Where command with TRUNCATE QLbut you can use it with DELETE command. TRUNCATE cannot be used with indexed views, whereas DELETE can be used with indexed views. The DELETE command is used to delete data from a table. … Read more

How to find the second highest salary in MySQL?

MySQL uses the LIMIT keyword, which can be used to limit the result set. It will allow us to get the first few rows, last few rows, or range of rows. It can also be used to find the second, third, or nth highest salary. It ensures that you have use order by clause to … Read more