Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL REPLACE help
Message
From
16/07/2001 15:30:50
 
 
To
16/07/2001 09:50:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00530393
Message ID:
00531179
Views:
22
>>The UPDATE is not working as I would like. For a different example. Table1 has SSN and LastName. Table2 has SSN and LastName and is used to update LastName in several tables. Not all the records in Table1 will be in Table2 and not all the records in Table2 will be in Table1. If Table1.SSN = Table2.SSN and Table1.LastName = Table2.LastName I want to replace Table1.LastName with Table2.LastName.
>>
>
>VFP's version of UPDATE can't do this. Use REPLACE FOR.
>
>Tamar

That sure seems to be true, Tamar. I guess that since the documentation doesn't explicitly say it can be done, then it is only fair to conclude that it can't, as you state.

BUT, this being a limitation of the current UPDATE - SQL, it sure would be helpful to get an error when one specifies (or tries) something beyond its capabilities.

Maybe you can note this in your next Hacker's publication.

JimN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform