|
|
Cry How to...Create a temporary tableCreating a temporary table is virtually the same as creating a normal table. The main exception is the naming of the table. A hash ('#') character as the first character in the table name denotes that it is a temporary table. There are two types of temporary tables, local and global. A local temporary table has a single hash (' A global temporary table is denoted by a name starting with two hashes
(i.e. ' An example of creating a local temporary table:
An example of creating a global temporary table:
These notes have been tested against SQL Server 7. |