If you use Oracle ODBC to connect, a VFP updateable view on the table you wish to update, and a second read-only view from the source table, you can scatter and gather (and then TABLEUPDATE() ) between the two.
On Wed, Sep 14, 2016 at 9:08 AM, Matt Wiedeman Matt.Wiedeman@nahealth.com wrote:
I could write a massive update statement but there are a lot of fields. I may end up doing it that way.
I just found the %ROWTYPE attribute...it seems to work like a "scatter memvar" but there is no "gather memvar" equivalent that I can find.
-----Original Message----- From: Koen Piller [mailto:koen.piller@gmail.com] Sent: Wednesday, September 14, 2016 1:24 AM To: ProFox Email List Subject: Re: Oracle question
Hi Can you use a SQL update ? Regards Koen
Op woensdag 14 september 2016 heeft Stephen Russell srussell705@gmail.com het volgende geschreven:
Try this. https://docs.oracle.com/cd/B28359_01/appdev.111/b28843/ tdddg_procedures.htm
There is no scatter memver in oracle.
On Tue, Sep 13, 2016 at 6:43 PM, Matt Wiedeman <Matt.Wiedeman@nahealth.com javascript:;> wrote:
Hi everyone,
I have a task to sync two tables in Oracle. There are two sets of tables. One is the set used by the application. The other set of tables are identical but each has an action field that is used do show if the row should be an add, update, or delete. An interface tool is populating
these.
I must take these interface tables and update the originals. I hope that makes sense.
Anyway, in FoxPro, I could just loop through each row, run "scatter memvar", locate/seek for the matching row in the original table, and run "gather memvar".
Does anyone know of an approach in Oracle like that or perhaps have some advice on doing this?
[excessive quoting removed by server]