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 > Table Archiving

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-07, 04:22
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Table Archiving

Hi,

I have a table of size 10 GB. It contains the data from 1997. Now I want to achive the table for different financial year. How to do that?
Reply With Quote
  #2 (permalink)  
Old 10-30-07, 06:54
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
I don't know how your table looks like(you should provide more information)
but you can use the following command in the script in the loop and archive table by financial years:

output to "filename.dat" select * from table where some_date_column >some_date and some_date_column< some_date;
Reply With Quote
  #3 (permalink)  
Old 10-31-07, 05:34
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Thanks

Thanks a lot. It will fulfill my requirement
Reply With Quote
  #4 (permalink)  
Old 10-31-07, 18:03
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
Exclamation

use the unload or HPL utils...
if you execute this select with OUTPUT will be a little hard to load this data again on IDS...
if you use the UNLOAD or HPL the data will be exported with delimiters "|"...
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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