How can my application benefit from temporary tables?

后端 未结 6 1609
一生所求
一生所求 2020-12-31 06:07

I\'ve been reading a little about temporary tables in MySQL but I\'m an admitted newbie when it comes to databases in general and MySQL in particular. I\'ve looked at some

6条回答
  •  情歌与酒
    2020-12-31 06:17

    The best place to use temporary tables is when you need to pull a bunch of data from multiple tables, do some work on that data, and then combine everything to one result set.

    In MS SQL, Temporary tables should also be used in place of cursors whenever possible because of the speed and resource impact associated with cursors.

提交回复
热议问题