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

Home -> Community -> Mailing Lists -> Oracle-L -> Re:HP-UX11/Oracle 8.1.6/Constraint Question

Re:HP-UX11/Oracle 8.1.6/Constraint Question

From: <dgoulet_at_vicr.com>
Date: Thu, 17 Oct 2002 07:08:46 -0800
Message-ID: <F001.004EC07B.20021017070846@fatcity.com>


Mike,

    Try using an 'instead of' trigger. It's made to purpose.

Dick Goulet

____________________Reply Separator____________________
Author: "Vergara; Michael (TEM)" <mvergara_at_guidant.com>
Date:       10/16/2002 4:23 PM

This is something I'm not sure can be done. Can somebody help me out?

I have a single table with a DEVICE_TYPE field, and four views - one for each valid device type. DEVICE_TYPE is a NOT NULL field. The views are defined like

   create view mytype_vw as
   select col1, col2, col3
   from table
   where device_type = 'MYTYPE';

DEVICE_TYPE is not displayed, it is inferred from the view. If I want to insert a row through the view, how can I populate the DEVICE_TYPE field?

TIA,
Mike

---
===========================================================================
Michael P. Vergara
Oracle DBA
Guidant Corporation


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Vergara, Michael (TEM) INET: mvergara_at_guidant.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: INET: dgoulet_at_vicr.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Thu Oct 17 2002 - 10:08:46 CDT

Original text of this message

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