Subject | Re: [firebird-support] Know if a table exist before create |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-07-14T05:16:46Z |
On 13 Jul 2004 at 16:34, donjules2k wrote:
CREATE TABLE statement. If the table exists, the statement will fail
and isql'll ignore it.
If you don't care about data and the table may exist with different
structure, use RECREATE TABLE statement.
SY, Dimitry Sibiryakov.
>In isql, i can run the create but not the IF to check the table doesIf the table contains some data and you want to keep it, use plain
>not exists.
>
>So how do I do this?
CREATE TABLE statement. If the table exists, the statement will fail
and isql'll ignore it.
If you don't care about data and the table may exist with different
structure, use RECREATE TABLE statement.
SY, Dimitry Sibiryakov.