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 -> Selecting columns using view

Selecting columns using view

From: Cezariusz Marek <Cezariusz.Marek_at_comarch.pl>
Date: 1997/09/28
Message-ID: <342b7075.1992915@news.tpnet.pl>#1/1

Hello,

I'm developing multilanguage application and I've got to keep values in database in 3 languages. Is it possible, to create a view, than select proper column depending on some global value?

That view will be used in Forms, so it must be read-write (I cannot change anything in Forms). I've created following view, but it's read-only:

create table test$ (t_id number(10),
                    t_desc_en varchar2(30),
                    t_desc_de varchar2(30),
                    t_desc_pl varchar2(30));

create view test as
  select t_id, t_desc_en t_desc from test$ where pck_globs.lang = 1 union all
  select t_id, t_desc_de t_desc from test$ where pck_globs.lang = 2 union all
  select t_id, t_desc_pl t_desc from test$ where pck_globs.lang = 3;

I cannot create three row for three languages because of foregin key constraints.

Plese help me (even answering, that it's immpossible, so I wont think about it anymore).

Regards, Received on Sun Sep 28 1997 - 00:00:00 CDT

Original text of this message

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