Comments on: Temporary table subtleties in MySQL http://www.xaprb.com/blog/2006/03/26/temporary-table-subtleties-in-mysql/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Xaprb http://www.xaprb.com/blog/2006/03/26/temporary-table-subtleties-in-mysql/#comment-151 Xaprb Wed, 05 Apr 2006 16:18:31 +0000 http://www.xaprb.com/blog/?p=105#comment-151 A couple more notes. It’s easy to mask a real table with a temp table like so: create temporary table mydb.mytable like mydb.mytable;. And a note on using temporary tables to mask real tables for testing; this can be handy, but it can also be dangerous. If someone updates the code so it reads or writes from different tables, then doesn’t update the test to mask those tables too, the test could end up accessing a mixture of temporary and real tables. Depending on the situation, this might be even worse than testing on real tables alone. It’s just something to be aware of and careful about.

]]>