Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a table from an SQL view?
Message
From
20/03/2000 10:55:30
Anthony Suarez
Black Marlin Data Corporation
Taguig, Philippines
 
 
To
20/03/2000 10:45:39
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347878
Message ID:
00347882
Views:
26
>CREATE SQL VIEW lvShipping AS;
> SELECT SO.PONO,;
> INVOICE.CUSTCODE,;
> CUSTOMER.NAME AS CUSTOMERNAME,;
> INVOICE.SHIPDATE,;
> INVOICE.TRANSPORTCODE,;
> TRANSPORT.NAME AS TRANSPORTNAME,;
> INVOICE.WAYBILLNO,;
> INVOICE.ID,;
> INVOICE.INVDATE,;
> INVOICE.SOID;
> FROM AMS!INVOICE;
> LEFT OUTER JOIN AMS!SO ON INVOICE.SOID=SO.ID;
> LEFT OUTER JOIN CUSTOMER ON SO.CUSTOMERID=CUSTOMER.ID;
> LEFT OUTER JOIN CUSTOMER_SHIP_VIA ON INVOICE.TRANSPORTID=CUSTOMER_SHIP_VIA.ID;
> LEFT OUTER JOIN TRANSPORT ON TRANSPORT.ID=CUSTOMER_SHIP_VIA.TRANSPORTID;
> ORDER BY INVOICE.SHIPDATE DESC

> USE AMS!lvShipping IN 0 SHARED
> CURSORSETPROP("SendUpdates", .T., "lvShipping")

Why not used the DBSETPROP() function to set the keyfield list, updatable list... To get all the properties of the VIEWS. Read the DBGETPROP() from your MSDN. This sure helps you to complete your coding.
Previous
Reply
Map
View

Click here to load this message in the networking platform