Subject | Re: [firebird-support] What is the RECREATE TABLE advantage ? |
---|---|
Author | Ivan Prenosil |
Post date | 2007-09-09T15:31:33Z |
Meiji,
* you can't drop table if there are some dependencies
* the new table will get new relation id (their maximal number is limited)
* you will loose grants granted to that table
* you will get exception if the table does not exist when executing DROP TABLE
The statement RECREATE TABLE solves only the the last problem,
i.e. it will succeed even if the table does not exist.
Ivan
http://www.volny.cz/iprenosil/interbase/
> Firebird support SQL statement 'RECREATE TABLE' from version 1.x.With DROP TABLE & CREATE TABLE you can encounter several problems
> What is the RECREATE TABLE advantage compare to DROP TABLE and CREATE TABLE.
> I think there is some reason to support RECREATE TABLE, but I cannot find the reason.
* you can't drop table if there are some dependencies
* the new table will get new relation id (their maximal number is limited)
* you will loose grants granted to that table
* you will get exception if the table does not exist when executing DROP TABLE
The statement RECREATE TABLE solves only the the last problem,
i.e. it will succeed even if the table does not exist.
Ivan
http://www.volny.cz/iprenosil/interbase/