[ic] Row-level export
Fri, 22 Dec 2000 11:29:20 -0700 (MST)
> > 4) Had to add my own... If you need it in a seperate table, create a
> > with the same columns, then search for your data and store it in the
> > instead of displaying it to the screen. Or hey do both! Then export
> > table...
> I like that idea, but if I can go straight from data->text file, then
> probably skip the dummy table part.
> I'm also looking at a 5th solution, a PostgreSQL SQL statement ala...
> [query sql="
> "SELECT * FROM products WHERE product_sku = 4 INTO TEMPORARY TABLE
> product_4; COPY product_4 TO '/tmp/product_4.out';
> enlighten. Such as "why don't you just do it with a SQL statement and
> IC out of it?"
Actually there are several reasons NOT to take this approach. First off being
that it makes your systems Database & Platform dependent... Say your site grows
and you wish to scale up to MySQL or Oracle, if you use strickly IC, then all
you do is change the DBI and wala you are up and running. Also you can swicth
Unix platforms as well, since all the code is platform independent.
Your way, when you upgrade your server, or SQL database you need to re-write
portions of you site. You may even forget all the places you used it in.
So sorry to say, your way is not pratical, unless you never plan on growing...
I always like to look to the future when I write code...
As one VERY smart man once said.... With Interchange ANYTHING is possible!
P.A.L.B. Systems - Phone: (780)451-1086 - Fax: (780)447-4760
11639-122 Street, Edmonton, Alberta, Canada, T5M 0B6