|
Nice - I just reported the first thing I found doing a search in the PDF
for *updatable*.
So using a function on the column, is that the condition or technique
that the manual says makes the view not writable or updatable? (And what
about not deletable? I wonder if Fulvio wants to block that, also, using
a view.)
*Regards*
*Vern Hamberg*
IBM Champion 2025 <cid:part1.c7KMJCO3.vb09yp9B@centurylink.net> CAAC
(COMMON Americas Advisory Council) IBM Influencer 2023
On 4/2/2025 10:10 AM, Rob Berendt wrote:
Vern,way.
I'd read more in that same reference. It talks about how to make the
columns so they cannot be updated. See these following two statements:
create view rob.iimv01
as select iprod, iid, idesc
from rob.iim
where iid = 'IM';
*-- DSPFD ROB/IIMV01*
*-- Allow read operation . . . . . . . . . . . : Yes *
*-- Allow write operation . . . . . . . . . . . : Yes *
*-- Allow update operation . . . . . . . . . . : ALWUPD *YES *
*-- Allow delete operation . . . . . . . . . . : ALWDLT *YES *
create view rob.iimv02
as select
*char*(iprod) as iprod,
*char*(iid) as iid,
*char*(idesc) as idesc
from rob.iim
where iid = 'IM'
;
*-- DSPFD ROB/IIMV02*
*-- Allow read operation . . . . . . . . . . . : Yes *
*-- Allow write operation . . . . . . . . . . . : No *
*-- Allow update operation . . . . . . . . . . : ALWUPD *NO *
*-- Allow delete operation . . . . . . . . . . : ALWDLT *YES*
On Wed, Apr 2, 2025 at 10:01 AM Vern Hamberg via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
Hi Fulvio
In the 7.4 SQL Reference I found this statement - it seems there is a
list
Read-only views: The addition of an INSTEAD OF trigger for a view
affects the read-only characteristic
of the view. If a read-only view has a dependency relationship with an
INSTEAD OF trigger, the type of
operation that is defined for the INSTEAD OF trigger defines whether the
view is deletable, insertable, or
updatable.
I did not look up anything about INSTEAD OF triggers, that should also
be in the SQL Reference.
I hope this helps.
*Regards*
*Vern Hamberg*
IBM Champion 2025<cid:part1.V2JCxQoO.u6YrRyPI@centurylink.net> CAAC
(COMMON Americas Advisory Council) IBM Influencer 2023
On 4/2/2025 7:33 AM, Fulvio Biagini - Gmail wrote:
Hello is there a way to create a view on a physical file that is not--
updatable but only readable? Grazie!!! Fulvio
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
--To post a message email:MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/midrange-l
or email:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/midrange-l.
Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.