What are the differences between Vistas
and Tablas Temporales
in MySQL
?
I have my doubts, after reading on the net about when I should use a View and a Temporary Table. In experience, I have always used temporary tables together with cursors but I had never touched views before and I see that the behavior is similar, where it is different and when it is advisable to use each one.
Regarding the first question, here are some important differences between temporary tables and views in MySQL:
For the second part of the question: when to use each one? It will depend a lot on the use you want to make of the data contained: