Subject | RE: [IB-Architect] DROP [ IF EXISTS ] DOMAIN ... |
---|---|
Author | Ann W. Harrison |
Post date | 2001-06-09T21:35:35Z |
At 05:14 PM 6/9/2001 -0400, Claudio Valderrama C. wrote:
the syntax for CREATE TABLE. The difference is that RECREATE will
delete the previous version of the table if one exists.
and creating in the same transaction is a problem.
do - just delete the table if it exists and define a new table.
Regards,
Ann
www.ibphoenix.com
We have answers.
> While the question was targeted to Jason, I like to point some facts:That's what I thought. The syntax for RECREATE TABLE is the same as
>- Probably the need to drop a table is to create a new one with the same
>name but different structure. Most common case?
the syntax for CREATE TABLE. The difference is that RECREATE will
delete the previous version of the table if one exists.
>- It may be the case also that you want to drop and define it same as beforeThe "timing" shouldn't be a problem, though there's a chance that dropping
>just because it may be more efficient than deleting all records in the
>table. Here I know about a weird latency problem, where at least two people
>reported last year that recreating the table as fast as possible (doing drop
>and create in an script) caused the new table to have records.
and creating in the same transaction is a problem.
>- There may be some tables with fixed structure that are used as helpers forThat's what I wondered...
>some complex operations. Maybe the script needs to simply drop them without
>caring if they exist or not.
>- The idea of morphing a table to create a new one is nice in theory. If itI'm not proposing that RECREATE morph the data - which Jim's UPDATE may
>works in NetfraS, good for it. However, at this time, in FB it's unfeasible
>IMHO: the mosquito (pardon, the bird) has today enough trouble altering
>metadata to introduce yet another headache.
do - just delete the table if it exists and define a new table.
Regards,
Ann
www.ibphoenix.com
We have answers.