Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle PL/SQL procedure
Message
From
03/07/1998 20:46:25
 
 
To
01/07/1998 16:40:55
Eric Wolfe
Health Management Technologies
Lafayette, California, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00113567
Message ID:
00114167
Views:
26
Hi Eric

I do not think PL/SQL has the same array funtions as VFP does. In PL/SQL You would most likely compare two tables using the UNION MINUS SQL construct, or create a CURSOR FOR loop to compare the two physical tables.

Anyway, should discussion of Oracle PL/SQL constructs take place in a VFP forum?

TPL




>I am working with Viual FoxPro as a frontend Oracle7 Workgroup Server on NT4 as a backend.
>
>I an creating a trigger (in Oracle) which will compare new value with old value for each field in the table and then record them in the log table if they differ. Here is my problems:
>
>1. I couldn't find a function to load all fields information into the
>array in PL/SQL (like AFIELDS() in VFP) so I could scan through
>that array and compare old and new field values.
>
>2. The syntax for new & old values in PL/SQL is - new.Employer_Name and
>old:Employer_Name where Employer_Name is name of the field.
>
>How I could compare values for each field without hardcoding field name, like:
>
>var1 := 'Employer_Name';
>and then use var1 in :old and :new constructions.
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform