Subject | Re: Possible to create temporary tables on the server? |
---|---|
Author | Adam |
Post date | 2007-04-30T05:55:45Z |
> Is it possible to create a temporary table on the server, work with itNot directly. Temporary tables are not implemented.
> a bit and then delete it?
Depending on your need, you could simulate the temporary table using a
real table and a context variable such as CURRENT_TRANSACTION or a
generator value. The main problems are that you need to perform the
cleanup yourself (ie, delete from the table) and it may be prone to
accumulating garbage.
Avoid creating and dropping real tables though, because some of the
internal numbers that get dished out are finite, large enough to not
be hit in normal use unless normal use means dropping and creating
tables many times on an average day.
Adam