Subject | does firebird have temporary session tables? |
---|---|
Author | Z T Minhas |
Post date | 2010-01-02T12:21:02Z |
Something i found on an oracle site, does firebird have something similar?
Global Temporary Tables
Applications often use some form of temporary data store for processes that are to complicated to complete in a single pass.
Often, these temporary stores are defined as database tables or PL/SQL tables. In Oracle 8i, the maintenance and management
of temporary tables can be delegated to the server by using Global Temporary Tables.
* Creation of Temporary Global Tables
* Miscellaneous Features
Creation of Global Temporary Tables
The data in a global temporary table is private, such that data inserted by a session can only be accessed by that session.
The session-specific rows in a global temporary table can be preserved for the whole session, or just for the current
transaction. The ON COMMIT DELETE ROWS clause indicates that the data should be deleted at the end of the
transaction.
CREATE GLOBAL TEMPORARY TABLE my_temp_table (
CREATE GLOBAL TEMPORARY TABLE my_temp_table (
* If the TRUNCATE statement is issued against a temporary
table, only the session specific data is trucated. There is no affect
on the data of other sessions.
* Data in temporary tables is automatically delete at the end of the database session, even if it ends abnormally.
* Indexes
can be created on temporary tables. The content of the index and the
scope of the index is that same as the database session.
* Views can be created against temporary tables and combinations of temporary and permanent tables.
* Temporary tables can have triggers associated with them.
* Export and Import utilities can be used to transfer the table definitions, but no data rows are processed.
* There are a number of restrictions related to temporary tables but these are version specific.
For more information see:
* Temporary Tables
* CREATE TABLE - GLOBAL TEMPORARY
Hope this helps. Regards Tim...
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
[Non-text portions of this message have been removed]
Global Temporary Tables
Applications often use some form of temporary data store for processes that are to complicated to complete in a single pass.
Often, these temporary stores are defined as database tables or PL/SQL tables. In Oracle 8i, the maintenance and management
of temporary tables can be delegated to the server by using Global Temporary Tables.
* Creation of Temporary Global Tables
* Miscellaneous Features
Creation of Global Temporary Tables
The data in a global temporary table is private, such that data inserted by a session can only be accessed by that session.
The session-specific rows in a global temporary table can be preserved for the whole session, or just for the current
transaction. The ON COMMIT DELETE ROWS clause indicates that the data should be deleted at the end of the
transaction.
CREATE GLOBAL TEMPORARY TABLE my_temp_table (
> column1 NUMBER,In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
> column2 NUMBER
>) ON COMMIT DELETE ROWS;
CREATE GLOBAL TEMPORARY TABLE my_temp_table (
> column1 NUMBER,Miscellaneous Features
> column2 NUMBER
>) ON COMMIT PRESERVE ROWS;
* If the TRUNCATE statement is issued against a temporary
table, only the session specific data is trucated. There is no affect
on the data of other sessions.
* Data in temporary tables is automatically delete at the end of the database session, even if it ends abnormally.
* Indexes
can be created on temporary tables. The content of the index and the
scope of the index is that same as the database session.
* Views can be created against temporary tables and combinations of temporary and permanent tables.
* Temporary tables can have triggers associated with them.
* Export and Import utilities can be used to transfer the table definitions, but no data rows are processed.
* There are a number of restrictions related to temporary tables but these are version specific.
For more information see:
* Temporary Tables
* CREATE TABLE - GLOBAL TEMPORARY
Hope this helps. Regards Tim...
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
[Non-text portions of this message have been removed]