Subject | Re: [firebird-support] DROP TABLE in FB 1.5 |
---|---|
Author | Milan Babuskov |
Post date | 2008-10-03T09:01:21Z |
Nick Upson wrote:
procedure. With Firebird 2.x you can combine EXECUTE STATEMENT and
EXECUTE BLOCK do to everything in a single statement:
See example on this page:
http://www.firebirdfaq.org/faq69/
Just change 'not exists' to 'exists' and 'create' to 'drop' and it will
do what you want.
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com
>> Could you help me how to write this syntax in FB 1.5 Dialect 3 ? (I used toWith Firebird 1.5 you can do it with EXECUTE STATEMENT using some stored
>> familiar with mySQL)
>>
>> ** DROP TABLE IF EXISTS table_1; **
procedure. With Firebird 2.x you can combine EXECUTE STATEMENT and
EXECUTE BLOCK do to everything in a single statement:
See example on this page:
http://www.firebirdfaq.org/faq69/
Just change 'not exists' to 'exists' and 'create' to 'drop' and it will
do what you want.
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com