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: default column value in view while inserting.

Re: default column value in view while inserting.

From: <hansijie_at_citiz.net>
Date: 16 Nov 2006 23:05:35 -0800
Message-ID: <1163747135.811904.244970@m7g2000cwm.googlegroups.com>


To my opinion , you should use trigger to meet your requirement.

"Rama Shankar дµÀ£º
"
> Hi all,
> I have a table like
> create table rs_temp (nm varchar2(10), id number, code number)
>
> and a view like
> create or replace view rs_vw_1 as
> select nm,id from rs_temp where code =1
>
> Is there any way that whenever we insert into the view it insert CODE
> =1 in base table
>
> eg-
>
> insert into rs_vw_1 values ('a',101);
>
> and in base table the record should go as
>
> 'a', 101 , 1
>
> Thanks in advance
> regards
> -rama
Received on Fri Nov 17 2006 - 01:05:35 CST

Original text of this message

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