On 22 May 2013 07:48, rob@xxxxxxxxx wrote:
I don't think you could build this huge view that would join all
dependencies together and then have the following work:
delete from myview where thiscolumn='deleteme'
Can you delete from any view, let alone a view that spans multiple
tables?

Perhaps you can run [and correct any errors in] the script I offered [though I gave no data to enable an actual test] to see how a DELETE from a "view that spans multiple tables" can be done using an INSTEAD OF TRIGGER (IOT). On v5r3 the IOT does not support a VIEW with multiple dataspaces; failing, diagnosed as msgSQL7008 rc10 per msgCPD32EA RC99].


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.