dbTalk Databases Forums  

Dropping A Table

comp.databases.btrieve comp.databases.btrieve


Discuss Dropping A Table in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sectatrix@gmail.com
 
Posts: n/a

Default Dropping A Table - 09-20-2006 , 06:42 AM






Hi, everyone.
My simple question about dropping table.
How can i control a table if existing in database before dropping?
Example:
Drop Table tmpTable;
Create Table tmpTable....

...if tmpTable not exist, my batch query doesnt works and i must
control
it before dropping.

Thanks for everyone.


Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Dropping A Table - 09-20-2006 , 11:00 AM






Don't use a batch query -- use two separate statements, and if the DROP
statement fails, simply ignore the error.
BB


sectatrix (AT) gmail (DOT) com wrote:

Quote:
Hi, everyone.
My simple question about dropping table.
How can i control a table if existing in database before dropping?
Example:
Drop Table tmpTable;
Create Table tmpTable....

...if tmpTable not exist, my batch query doesnt works and i must
control
it before dropping.

Thanks for everyone.


Reply With Quote
  #3  
Old   
sectatrix@gmail.com
 
Posts: n/a

Default Re: Dropping A Table - 09-21-2006 , 04:01 AM




Thanks Bill for your help.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.