I am very new to MySQL. My question may wrong, if it is please correct or explain it.
I Just read about Heap table and temporary table by searching definition on Google. What is the exact difference between them and what real time use of both?
As per my knowledge or what I have read:
Heap table : Tables that are present in the memory are called as HEAP tables. When creating a HEAP table in MySql, user needs to specify the TYPE as HEAP. These tables are now more commonly known as memory tables. These memory tables never have values with data type like “BLOB” or “TEXT”. They use indexes which make them faster.
Temporary table : The temporary tables could be very useful in some cases to keep temporary data. Temporary table is that they will be deleted when the current client session terminates.