Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Multilanguage application & database
On 25 Oct 2004, galenboyer_at_hotpop.com wrote:
> On 22 Oct 2004, kristofvdw_at_matt.es wrote:
>
>> POSSIBILITY 2: Putting a foreign key to a language table >> doesn't seem possible, since every language would need a row >> in the resulting table.
Sorry, need to remove the above attribute, some_nontranslatable_set_of_fields.
>
> ,some_translatable_set_of_fields CONSTRAINT XPK_L PRIMARY
> KEY (id) );
>
> alter table tbl_l add
> ( constraint r_b foreign key (base_id) references tbl_b);
>
> alter table tbl_language add
> ( constraint r_type foreign key (lanquage_type) references
> language_type);
>
> I then created a view called tbl joining these and I had a
> schema per language type restricting to language type. The
> user's choice of language defined what schema to log into.
>
> But, with context and VPD, I would just set the preference on
> context and log into a single schema.
>
> But, I still think you have to solve what the user sees if the
> language row doesn't exist, and that is an answer your business
> folks must give you.
-- Galen BoyerReceived on Mon Oct 25 2004 - 10:26:15 CDT
![]() |
![]() |