Gene Wirchenko
2018-04-06 22:19:47 UTC
Hello:
I wish to compare two tables' structures. I have a transaction
table, and I wish to check that an import table matches up well enough.
Well enough? All columns in the transaction table must be in
the import table and of the same type and size. If there are
additional column in the import table or if the columns are in a
different order, it does not matter.
It would be nice to able to copy each structure into an array
and then compare them using scan().
Instead, I think that I have to copy structured extended to a
temporary table -- I would prefer a cursor -- and then copy from that
to an array for each of the two tables and only then compare. That
seems rather Rube-Goldbergian.
I could be missing something. I hope I am.
What is a good way of doing this?
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@mtlp000086
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I wish to compare two tables' structures. I have a transaction
table, and I wish to check that an import table matches up well enough.
Well enough? All columns in the transaction table must be in
the import table and of the same type and size. If there are
additional column in the import table or if the columns are in a
different order, it does not matter.
It would be nice to able to copy each structure into an array
and then compare them using scan().
Instead, I think that I have to copy structured extended to a
temporary table -- I would prefer a cursor -- and then copy from that
to an array for each of the two tables and only then compare. That
seems rather Rube-Goldbergian.
I could be missing something. I hope I am.
What is a good way of doing this?
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@mtlp000086
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.