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

default column value in view while inserting.

From: Rama Shankar <ramashankar.yadav_at_gmail.com>
Date: 16 Nov 2006 22:26:44 -0800
Message-ID: <1163744804.067007.320280@e3g2000cwe.googlegroups.com>


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 - 00:26:44 CST

Original text of this message

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