×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I want to update and delete using the result of a join. If I create a
table first containing the rows to modify can I safely join to it for
the update or delete?
I don't know why you would need to use a second table; if you want to you
can, but don't do it without reason (such as needing a "list" of
purged/changed items - which you could get from journal anyway).
In either case, have a look at WHERE EXISTS.
DELETE FROM mytable WHERE EXISTS
SELECT 1 from yourtable where (condition to be deleted)
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"You can make more friends in two months by becoming interested in other
people than you can in two years by trying to get other people interested in
you."
-- Dale Carnegie
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.