Results 1 to 4 of 4

Thread: Table Archiving

  1. #1
    Join Date
    Jan 2007
    Posts
    30

    Unanswered: 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?

  2. #2
    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;

  3. #3
    Join Date
    Jan 2007
    Posts
    30

    Thanks

    Thanks a lot. It will fulfill my requirement

  4. #4
    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).
    ________________________________________

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •