A local temporary table exists only for the duration of a connection or, if defined inside a compound statement, for the duration of the compound statement.
A global temporary table remains in the database permanently, but the rows exist only within a given connection. When connection are closed, the data in the global temporary table disappears. However, the table definition remains with the database for access when database is opened next time.
Thursday, June 12, 2008
Subscribe to:
Post Comments (Atom)
1 comment:
The question is talking about VARIABLES, while your explanation is talking about temporary tables.
Post a Comment