Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Inserting through a view - forcing certain values into columns

Re: Inserting through a view - forcing certain values into columns

From: Jeremy <jeremy0505_at_gmail.com>
Date: Mon, 12 Mar 2007 12:42:18 -0000
Message-ID: <MPG.205f5b06aa6d06df98a3f3@news.individual.net>


In article <45F5407B.2080505_at_arcor.de>, Maxim Demenko says...

> SQL> create or replace view mytab_v
> 2 as
> 3 (select *
> 4 from mytab
> 5 where filter_col = 'Y')
> 6 with check option;
>
> View created.
>
> SQL>
> SQL> insert into mytab_v (id, name, filter_col)
> 2 values (1, 'xxx','N');
> insert into mytab_v (id, name, filter_col)
> *
> ERROR at line 1:
> ORA-01402: view WITH CHECK OPTION where-clause violation
>
>

<slaps forehead>
Probably been around since oracle version 6....

-- 
jeremy
Received on Mon Mar 12 2007 - 07:42:18 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US