Temporary tables only exist in your current session. In order to optimize a SQL statement that uses temporary tables, these tables need to be created in this session before you optimize. The User-Defined Temp Table window allows the creation of temporary tables to be use throughout modules that use the original sessions that is created as you logon.
Temporary tables created in the User-Defined Temp Table module are used in the SQL Optimizer and SQL Scanner and can be viewed in the Database Explorer. An icon displays in the status bar of the main window to indicate at least one temporary table was created under the current session.
Temporary tables are dropped when you
Exit from the program
Reconnect with the same or a different user logon
Drop it using the User-Defined Temp Table module
To create temporary tables
Click .
Enter the SQL for creating the temporary table on the Creation tab. Multiple commands can be entered.
Click Execute.
After the temporary table is created you will notice an icon on the bottom right of the main window status. This icon disappears when all user-defined temporary tables are dropped.
The User-Defined Temp Table module only supports SQL statements that create or modify temporary tables; these are:
SELECT INTO
CREATE TABLE
CREATE INDEX
DROP INDEX
DROP TABLE
INSERT
UPDATE
DELETE
Note: Temporary tables created within the User-Defined Temp Table window can be used in all modules but the SQL Worksheet. The SQL Worksheet module creates a separate session so temporary tables created in the User-Defined Temp Table cannot be used in the SQL Worksheet and vice versa.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Conditions d’utilisation Confidentialité Cookie Preference Center