If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > truncate table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-02, 04:41
eros eros is offline
Registered User
 
Join Date: Oct 2002
Posts: 8
truncate table

i use ids 2000 form linux. And i found some sqls are not supported on it, such as "truncate table". Who can tell me why?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-31-02, 05:04
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

I don't know that
but the same operation you can drop-create table
it's faster enough for used
Reply With Quote
  #3 (permalink)  
Old 10-31-02, 06:01
eros eros is offline
Registered User
 
Join Date: Oct 2002
Posts: 8
Re: re

Quote:
Originally posted by dananio
I don't know that
but the same operation you can drop-create table
it's faster enough for used
Thanks for ur reply.
But it would be error if the sql were broken up while deleting tables last time...
Reply With Quote
  #4 (permalink)  
Old 10-31-02, 16:14
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

I don't understand ???
all of sql statements will error if sql is broken
Reply With Quote
  #5 (permalink)  
Old 10-31-02, 20:40
eros eros is offline
Registered User
 
Join Date: Oct 2002
Posts: 8
I have a sql runs every day to import some data to some tables. Now i use drop and create table instead of "truncate table", and i put this sql script to crontab. If last day some errors occured while deleting some tables, perhaps there are tables still exist in the database. This circumstance course errors and break down while the script automatic start up again unless manually correct it which will not happen use "truncate table"
Reply With Quote
  #6 (permalink)  
Old 11-01-02, 03:08
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

before you load data into table you have to check row of table if it 0 then you can load but if it isn't 0 then you call drop-create again
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On