On Thu, Aug 17, 2017 at 2:30 PM, Dan <dan27649@xxxxxxxxx> wrote:


In addition, ARCHIVEXYZ currently does this for 33 tables, so manually
spec'ing all the fields in the select statement would be an arduous task.


Not really​...

Pretty easy to get a list of columns from SYSCOLUMNS...and if you have 7.2+
and the most recent TR's you can even use the LISTAGG() function to turn it
into a column delimited string.

Archiving is one place it _might_ make sense to use SELECT *.

I say might because it depends, it might be good to automatically pick up a
new column. But only if the destination can automatically handle it.

Charles

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].