Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Do This SQL
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01055122
Message ID:
01055139
Views:
14
In addition, you can combine the first select with DELETE/UPDATE
DELETE MyTable ;
	FROM MyTable ;
	JOIN (SELECT Id FROM MyTable WHERE SomeValue = 1) MyCursor
		ON MyCursor.Id = MyTable.Id
>Thank you!
>
>>In VFP9 only
>>DELETE MyTable;
>>    FROM MyTable;
>>    JOIN MyCursor ON MyCursor.Id = MyTable.Id
>>
>>UPDATE MyTable;
>>    SET SomeField = SomeValue;
>>    FROM MyTable;
>>    JOIN MyCursor ON MyCursor.Id = MyTable.Id
>>
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform